cvs commit: src Makefile.inc1

Sheldon Hearn sheldonh at starjuice.net
Mon Dec 15 03:12:13 PST 2003


On (2003/12/15 16:59), Alexey Dokuchaev wrote:

> > Hmmm, I don't know.  POSIX suggests that scripts should not rely on the
> > output of formatted ls(1) output.
> 
> Yes, that's why having stat(1) in -CURRENT is OK.  Since we hardly can
> claim 4.x as fully POSIX-compliant, dealing with "ls/stat" trade-off
> via ls(1) is not that bad. 

Agreed.

> After all, if we hack needed (minor) functionality into ls(1) and
> provide new command line option, we can avoid cumbersome parsing of
> `ls -l' output, yet not pulling stat(1) from -CURRENT at the same
> time.

Well, either way, the script relies on extensions to the POSIX
environment.  To me, providing stat(1) seems like a tidier move forward.
ls(1) is already bloated.  However, this is a gut feeling, and thus
bikeshed fodder.

NetBSD already has stat(1).  So in the face of a bikeshed decision, I'm
happy to paint ours the same colour as theirs. :-)

Ciao,
Sheldon.


More information about the cvs-src mailing list