Re: PATCH: relpath

2012-05-14 Thread Pádraig Brady
On 05/14/2012 01:39 PM, Peng Yu wrote: > On Mon, May 14, 2012 at 3:33 AM, Pádraig Brady wrote: >> On 05/13/2012 04:27 AM, Peng Yu wrote: `--relative-base=BASE' Only output relative names when both the `--relative-to' and processed FILEs are descendants of BASE. Otherwise ou

bug#11467: Parfait problems with GNU coreutils

2012-05-14 Thread Jim Meyering
Thanks for auditing coreutils! A bug in sort would have been a surprise, and more of an issue, so I've looked at it first. Rich Burridge wrote: ... > Error: Null pointer dereference (CWE 476) >Read from null pointer 's' > at line 3389 of components/coreutils/coreutils-8.5/src/sort.c i

bug#11453: `ls` in coreutils-8.17 incorrectly shows broken symlinks in /

2012-05-14 Thread Eric Blake
On 05/12/2012 08:27 AM, Jim Meyering wrote: > Subject: [PATCH] ls: color each symlink-to-relative-name in / properly > > In order for ls --color to color each symlink, it must form the name > of each referent and then stat it to see if the link is dangling, to > a directory, to a file, etc. When

Re: PATCH: relpath

2012-05-14 Thread Peng Yu
On Mon, May 14, 2012 at 3:33 AM, Pádraig Brady wrote: > On 05/13/2012 04:27 AM, Peng Yu wrote: >>> `--relative-base=BASE' >>>     Only output relative names when both the `--relative-to' and processed >>>     FILEs are descendants of BASE.  Otherwise output the absolute file name. >>>     Note thi

Re: wc 'Is a directory' output

2012-05-14 Thread Bernhard Voelker
On 05/13/2012 07:43 AM, Christopher Jordan-Squire wrote: > Hi--I was playing around with using awk on wc output and discovered > that when wc prints "wc: DIR: Is a directory", where DIR is the > appropriate directory name, it doesn't seem to be printing to stdout. > If I redirect the output of, say

Re: PATCH: relpath

2012-05-14 Thread Jim Meyering
Pádraig Brady wrote: > On 05/13/2012 04:27 AM, Peng Yu wrote: >>> `--relative-base=BASE' >>> Only output relative names when both the `--relative-to' and processed >>> FILEs are descendants of BASE. Otherwise output the absolute file name. >>> Note this option honors the @option{-m} a

bug#11406: Bug? df uses f_bsize instead of f_frsize to calculate file system sizes

2012-05-14 Thread Pádraig Brady
On 05/12/2012 05:05 AM, Paul Eggert wrote: > On 05/11/2012 06:56 PM, Nikolaus Rath wrote: >> Yes, this works: > > OK, thanks, I pushed that patch into gnulib, where > coreutils should eventually pick it up. > >> I just noticed that the "stat" command is affected by this as well: > > Ouch. Perha

Re: PATCH: relpath

2012-05-14 Thread Pádraig Brady
On 05/13/2012 04:27 AM, Peng Yu wrote: >> `--relative-base=BASE' >> Only output relative names when both the `--relative-to' and processed >> FILEs are descendants of BASE. Otherwise output the absolute file name. >> Note this option honors the @option{-m} and @option{-e} options >>