Gnu findutils

[prev] [thread] [next] [lurker] [Date index for 2004/03/04]

From: Jonathan Stowe
Subject: Gnu findutils
Date: 13:09 on 04 Mar 2004
So how long has samba been around, how long has Windows had long
filenames and encourage people to create files with spaces in (yeah,
yeah I know but that is a totally different piece of hate.)  It's not
entirely impossible to create filenames with spaces under Unix (why you
should want to is another matter).

Then why do the stupid poxy findutils not make any allowance for this
and not give me:

[jonathan@orpheus Documentation]$ find . -type d | xargs chmod go+rx
chmod: failed to get attributes of `./Database': No such file or
directory
chmod: failed to get attributes of `Schema': No such file or directory
chmod: failed to get attributes of `./Document': No such file or
directory
chmod: failed to get attributes of `System': No such file or directory
chmod: failed to get attributes of `./ID': No such file or directory
chmod: failed to get attributes of `generation': No such file or
directory
chmod: failed to get attributes of `./SCP': No such file or directory
chmod: failed to get attributes of `SDK': No such file or directory

and so forth.   Oh yes I know there are ways to get around this.  But
'find' knows it has a filename there which has a space in it and 'xargs'
is designed to work with 'find' so why can't they just sort themselves
out and deal with these as filenames rather than a bunch of space
delimited tokens.

I despair.

/J\

Generated at 14:02 on 01 Jul 2004 by mariachi 0.52