'rm -fr' mishandles unreadable empty directories

2006-06-26 Thread Paul Eggert
(I found this while testing a new version of 'install-sh'.) Here's a scenario illustrating the problem. $ mkdir -m a-r -p a/b $ rm -fr a rm: cannot open directory `a/b': Permission denied rm: cannot remove directory `a': Directory not empty $ ls -ld a a/b drwxr-xr-x 3 eggert egg

Re: uniq: missing option -W / --check-fields=N

2006-06-26 Thread Pádraig Brady
Matt Keenan wrote: > > Paul Eggert wrote: > >> Matt Keenan <[EMAIL PROTECTED]> writes: >> >> >> >>> Paul Eggert has mentioned that upstream uniq has never had a -W >>> flag. Would you be receptive to a patch? >>> >> >> >> I'm not sure. Does any distribution other than Debian-derived >> di

Re: don't say uniq -D -c is meaningless

2006-06-26 Thread Pádraig Brady
Dan Jacobson wrote: > $ dmesg|sort|uniq -D -c > uniq: printing all duplicated lines and repeat counts is meaningless > Try `uniq --help' for more information. > > Meaningless for you, but just what I want: > > $ dmesg|sort|uniq -D|uniq -c > 5 EXT3-fs: mounted filesystem with ordered data mo

Re: FYI: wc accepts a new option --files0-from=FILE, ...

2006-06-26 Thread Pádraig Brady
The reason for this I think is so that one gets accurate totals, as the following will only give subtotals for each invocation of wc, if there are enough files to make the cmd line go above the max len. find -print0 | xargs --null wc Might be worth adding text to that affect, as I needed to think

Re: FYI: wc accepts a new option --files0-from=FILE, ...

2006-06-26 Thread Jim Meyering
Pádraig Brady <[EMAIL PROTECTED]> wrote: > The reason for this I think is so that one gets accurate totals, > as the following will only give subtotals for each invocation of wc, > if there are enough files to make the cmd line go above the max len. > > find -print0 | xargs --null wc Right. > Mig

Re: sleep args

2006-06-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Dan Jacobson on 6/24/2006 3:59 PM: > > EB> That's pretty clear to me. The --help output (and thus man pages) > EB> are intentionally less verbose, since GNU projects favor info > EB> documentation. > > well I'm a man man... usually good

Re: 'rm -fr' mishandles unreadable empty directories

2006-06-26 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: > (I found this while testing a new version of 'install-sh'.) > > Here's a scenario illustrating the problem. > >$ mkdir -m a-r -p a/b >$ rm -fr a >rm: cannot open directory `a/b': Permission denied >rm: cannot remove directory `a': Directory n

bug in the 'seq' program

2006-06-26 Thread Fabio Spelta
I would notice that the "-w" options only works if the upper limit is a number up to 99. With number 999 (there is one "9" more) that does not works anymore. I'm using version 5.2.1 provided by the ubuntu Dapper distribution. Regards and thank you very much for your work and attention. --

problem creating symbolic link

2006-06-26 Thread skorkmaz
Hi I have a problem creating a symbolic link in the /dos/ partition (fat32) of the linux. I can create elsewhere but not here. I am using Mandriva 2006 and I need to work on the dos partition because I visualize the results in windows. Please help. Thank you Serdar ___

Re: FYI: wc accepts a new option --files0-from=FILE, ...

2006-06-26 Thread Bob Proulx
Jim Meyering wrote: > The description of wc's --files0-from is nearly identical > to that of du. I've added an example: > ... > [EMAIL PROTECTED] > +find . -name '*.[ch]' -print0 | ./wc -L --files=- | tail -n1 > [EMAIL PROTECTED] example Here you are using the substring abbreviation --files for -

Re: FYI: wc accepts a new option --files0-from=FILE, ...

2006-06-26 Thread Jim Meyering
[EMAIL PROTECTED] (Bob Proulx) wrote: > Jim Meyering wrote: >> The description of wc's --files0-from is nearly identical >> to that of du. I've added an example: >> ... >> [EMAIL PROTECTED] >> +find . -name '*.[ch]' -print0 | ./wc -L --files=- | tail -n1 >> [EMAIL PROTECTED] example > > Here you a

Re: uniq: missing option -W / --check-fields=N

2006-06-26 Thread Paul Eggert
Matt Keenan <[EMAIL PROTECTED]> writes: > Making a patch from the debian sources is not a difficult task > and I can provide one if necessary. On thinking about it further, I like the idea of having 'uniq' be consistent with 'sort', but I'd prefer 'uniq' to have the same syntax as 'sort', i.e, 'u

Re: uniq: missing option -W / --check-fields=N

2006-06-26 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: > Matt Keenan <[EMAIL PROTECTED]> writes: > >> Making a patch from the debian sources is not a difficult task >> and I can provide one if necessary. > > On thinking about it further, I like the idea of having 'uniq' be > consistent with 'sort', but I'd prefer

Re: bug in the 'seq' program

2006-06-26 Thread Paul Eggert
"Fabio Spelta" <[EMAIL PROTECTED]> writes: > I would notice that the "-w" options only works if the upper limit is > a number up to > 99. With number 999 (there is one "9" more) that does not works > anymore. That's the documented behavior for 'seq', since the default format is %g. Perh

Re: uniq: missing option -W / --check-fields=N

2006-06-26 Thread Matt Keenan
Jim Meyering wrote: [snip snip] I agree, and think I wrote exactly the same thing: uniq needs the same -k key-selection options as sort -- probably in response to a request to integrate the Debian patch. I went to look for it a couple days ago, but got side-tracked. I am happy to write

Re: problem creating symbolic link

2006-06-26 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to [EMAIL PROTECTED] on 6/26/2006 8:20 AM: > Hi > I have a problem creating a symbolic link in the /dos/ partition > (fat32) of the linux. I can create elsewhere but not here. I am using > Mandriva 2006 and I need to work on the dos partition

Re: uniq: missing option -W / --check-fields=N

2006-06-26 Thread Jim Meyering
Matt Keenan <[EMAIL PROTECTED]> wrote: > Jim Meyering wrote: >> [snip snip] >> I agree, and think I wrote exactly the same thing: uniq needs the >> same >> -k key-selection options as sort -- probably in response to a request >> to integrate the Debian patch. I went to look for it a couple days