On Wed, Dec 10, 2003 at 02:21:11PM -0500, Eric Siegerman wrote: > On Wed, Dec 10, 2003 at 11:55:04AM -0500, Eric Sunshine wrote: > > The '^' and '.' tokens in the grep expression [...] > > > > [...] only use "ls -ld" after checking that such usage is valid > > I'm 95% certain that each of these worked in 6th-Edition Bell > Labs UNIX, so it'd have to be a truly perverse platform that > failed to support them. Of course I'm not stating categorically > that such platforms don't exist, but I'd want to know the name > and version of one -- and more to the point, its relevence in > 2003 -- before I went to any effort at all to code around its > crazy limitations. Well, systems where ls -ld behaves differently aren't all that uncommon. For instance, on some AFS installations you'll get only three bits of permission instead of the usual nine. Personally, I'd just mark everything executable if test -x didn't work. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer