Subject: Re: CVS commit: src/bin/ls
To: None <source-changes@NetBSD.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: source-changes
Date: 04/08/2006 18:05:53
--WfZ7S8PLGjBY9Voh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

"Perry E. Metzger" <perry@piermont.com> wrote:
>=20
> Jan Schaumann <jschauma@netmeister.org> writes:
> > "Perry E. Metzger" <perry@piermont.com> wrote:
> >>=20
> >> Jan Schaumann <jschauma@netmeister.org> writes:
> >
> >> > Running 'ls -b "foo bar"' yields:
> >> >
> >> > On Lunix:   foo\ bar
> >> > On IRIX:    foo\0x4bar
> >> > On Solaris: foo bar
> >> > On NetBSD:  foo bar
> >>=20
> >> I think shockingly, the Linux behavior seems most in accord with what
> >> one would expect -b to do (and with what is most useful to the user.)
> >
> > Actually, if the manual page that '-b' "prints octal escapes for
> > nongraphic characters", then using "\ " for a space doesn't seem
> > quite correct.
>=20
> That's not what the manual says for -b -- it is what it says for -B.

Yes, in _our_ manual page.  The GNU ls manual page, however, says for
'-b'  "print octal escapes for nongraphic characters".  (Well, at least
the particular version of Linux I happen to have access to.)

> So -b uses "escape codes" and not "octal escapes".

Yes, if you do it right. :-)

-Jan

--=20
   This is so cool I have to go to the bathroom.

--WfZ7S8PLGjBY9Voh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFEODPBfFtkr68iakwRAqxmAKDb0JVtp7zUngCKf/OAkO+5VroVgQCdG1rM
/WJFaz5YaLU59Ls8UcBzT80=
=1LK+
-----END PGP SIGNATURE-----

--WfZ7S8PLGjBY9Voh--