"Perry E. Metzger" <perry%piermont.com@localhost> wrote: > > Jan Schaumann <jschauma%netmeister.org@localhost> writes: > > "Perry E. Metzger" <perry%piermont.com@localhost> wrote: > >> > >> Jan Schaumann <jschauma%netmeister.org@localhost> writes: > > > >> > Running 'ls -b "foo bar"' yields: > >> > > >> > On Lunix: foo\ bar > >> > On IRIX: foo\0x4bar > >> > On Solaris: foo bar > >> > On NetBSD: foo bar > >> > >> 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. > > 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 -- This is so cool I have to go to the bathroom.
Attachment:
pgpI2EHypqa9e.pgp
Description: PGP signature