Re: ls -Rd behavior

2007-08-20 Thread James Youngman
On 8/19/07, Bob Proulx <[EMAIL PROTECTED]> wrote: > Note that newer find commands can support the behavior more > efficiently in one process without needing to worry about argument > escaping. > > find . -exec ls -d {} + Indeed, even quite old versions of GNU findutils can do something broadly s

Re: ls -Rd behavior

2007-08-19 Thread Bob Proulx
John Cowan wrote: > Eric Blake scripsit: > > The problem is that TRT isn't defined. Suppose you have a/b/c, and pwd is > > in a. Should 'ls -dR *' print data on b/c, or stop recursing at b? I think that it should invoke the game of rogue. It could even still claim compliance to the standards si

Re: ls -Rd behavior

2007-08-18 Thread John Cowan
Eric Blake scripsit: > The problem is that TRT isn't defined. Suppose you have a/b/c, and pwd is > in a. Should 'ls -dR *' print data on b/c, or stop recursing at b? On my assumption that -R controls what files ls visits, and -d controls what is printed about them, I'd say it should print data

Re: ls -Rd behavior

2007-08-17 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to John Cowan on 8/17/2007 10:35 AM: > Eric Blake scripsit: > >> Since POSIX states "The use of -d with -R produces unspecified results," >> should >> we change ls to reject -Rd and -dR as invalid option combinations rather >> than >> th

Re: ls -Rd behavior

2007-08-17 Thread John Cowan
Eric Blake scripsit: > Since POSIX states "The use of -d with -R produces unspecified results," > should > we change ls to reject -Rd and -dR as invalid option combinations rather than > the current behavior of ignoring -R when -d is present? Better yet, why not DTRT? -R is about what objects

ls -Rd behavior

2007-08-17 Thread Eric Blake
Since POSIX states "The use of -d with -R produces unspecified results," should we change ls to reject -Rd and -dR as invalid option combinations rather than the current behavior of ignoring -R when -d is present? -- Eric Blake ___ Bug-coreutils m