Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles; site ea.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!inuxc!pur-ee!uiucdcs!ea!mwm From: mwm@ea.UUCP Newsgroups: net.unix-wizards Subject: Re: /bin/sh feature? - (nf) Message-ID: <13500021@ea.UUCP> Date: Wed, 18-Jul-84 18:25:00 EDT Article-I.D.: ea.13500021 Posted: Wed Jul 18 18:25:00 1984 Date-Received: Sat, 21-Jul-84 04:34:50 EDT References: <274@uvm-cs.UUCP> Lines: 39 Nf-ID: #R:uvm-cs:-27400:ea:13500021:000:1019 Nf-From: ea!mwm Jul 18 17:25:00 1984 #R:uvm-cs:-27400:ea:13500021:000:1019 ea!mwm Jul 18 17:25:00 1984 /***** ea:net.unix-wizar / pur-phy!crl / 12:26 am Jul 16, 1984 */ A further peeve about '#' is that, at least on 4.2 BSD, saying 'rm #*' doesn't work from the tty in sh since the '#' makes the rest of the line be treated as a comment. Csh does not allow '#' from the terminal. Charles LaBrec UUCP: pur-ee!Physics:crl, purdue!Physics:crl INTERNET: crl @ pur-phy.UUCP /* ---------- */ How long are people going to keep spreading that silly rumor? It just flat isn't true. Csh is smart enough to realize that "#" or "#" are *not* comment markers. Hence "lpr -#3" does what you want, and causes three copies of your output to get printed. To verify that "rm #*" would work, I did the present the following (from a 4.2 mtxinu binary): Script started on Wed Jul 18 17:22:13 1984 % ls #* No match. % foreach i (1 2 3 4) ? cp /dev/null #$i ? end % ls #* #1 #2 #3 #4 % rm #* % ls #* No match. % ^D script done on Wed Jul 18 17:22:50 1984 Looks like the "rm #*" works to me.