Path: utzoo!mnetor!uunet!husc6!bbn!mit-eddie!ll-xn!ames!ncar!boulder!sunybcs!bingvaxu!leah!itsgw!batcomputer!lrj From: lrj@batcomputer.tn.cornell.edu (Lewis R. Jansen) Newsgroups: comp.unix.wizards Subject: Re: Kernel Hacks & Weird Filenames Message-ID: <4577@batcomputer.tn.cornell.edu> Date: 26 Apr 88 14:20:22 GMT References: <13041@brl-adm.ARPA> <4895@chinet.UUCP> <11153@mimsy.UUCP> <4911@chinet.UUCP> <11204@mimsy.UUCP> <4965@chinet.UUCP> Reply-To: lrj@tcgould.tn.cornell.edu (Lewis R. Jansen) Organization: Lab of Atomic and Solid State Physics, Cornell University Lines: 22 In article <4965@chinet.UUCP> les@chinet.UUCP (Leslie Mikesell) writes: }In article <11204@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: }}}In article <11153@mimsy.UUCP> (Chris Torek) wrote: }}}}First, `non-printable characters'. Well, there are certainly numerous }} }}But it does not. (`ls' prints `?' for control characters; `ls|cat -v' }}expands them; other programs have other means of displaying them.) } }What? How can ls|cat -v display control characters if ls changes them? The ls command checks to see if its output is going to a terminal or to some other place. If it's writing to a terminal, ls changes the various unprintable characters to be ``?'', otherwise it leaves them alone. This is on SunOS 3.4, and probably evolved from 4BSD. -- -- Lewis R. Jansen, LASSP Systems Grunt lrj@helios.tn.cornell.edu ...!cornell!lassp!lrj "You can't fight in here, this is the War Room!"