Date: Sun, 22 Mar 2009 12:32:00 -0400 From: David Schultz <das@FreeBSD.ORG> To: =?utf-8?B?TWlrb2zDocWh?= Janota <mikolas.janota@gmail.com> Cc: freebsd-standards@FreeBSD.ORG Subject: Re: POSIX conformance of ls -l -1 Message-ID: <20090322163200.GA74989@zim.MIT.EDU> In-Reply-To: <682003a60903220754g6c653582lb346f8e8d6bf63cf@mail.gmail.com> References: <682003a60903220754g6c653582lb346f8e8d6bf63cf@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 22, 2009, Mikoláš Janota wrote: > For the command ls, the POSIX standard, says that "When -l (ell) is > specified, -1 (one) shall be assumed." > (http://www.opengroup.org/onlinepubs/000095399/utilities/ls.html) > > In the FreeBSD implementation, however, -1 and -l override one > another. I can't see how this could be POSIX compliant. > > I'm on Mac OS X which I believe is using FreeBSD port and the man page > claims POSIX compliance. Where can I find more information about this? Perhaps it's a bug. Comments in the source seem to indicate that it was done this way on purpose, though. If you have `ls' aliased to `ls -laG', for example, you can still use `ls -1' on the command line to force the single-line output (as if the options were `ls -aG'.) I'm not sure what we ought to do about it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090322163200.GA74989>