Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcsla.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!ittvax!dcdwest!sdcsvax!sdcsla!west From: west@sdcsla.UUCP (Larry West) Newsgroups: net.unix Subject: Re: # comment character Message-ID: <909@sdcsla.UUCP> Date: Fri, 21-Jun-85 15:53:42 EDT Article-I.D.: sdcsla.909 Posted: Fri Jun 21 15:53:42 1985 Date-Received: Mon, 24-Jun-85 04:19:16 EDT References: <291@ucdavis.UUCP> Reply-To: west@sdcsla.UUCP (Larry West) Distribution: net Organization: UC San Diego: Institute for Cognitive Science Lines: 19 Summary: because of "script" In article <291@ucdavis.UUCP> ccrrick@ucdavis.UUCP (Rick Heli) writes: >Can anyone tell me why the # character is a comment in INTERACTIVE >mode in the shell? I mean, who goes around making comments that >will never be seen again while running the shell in interactive >mode? >-- > --rick heli This is true of "sh", but not "csh". I don't know what the reason is, but it is useful when doing "script" (a Berkeley program which records every character that passes through your tty -- very very useful for giving example sessions, or proof of bugs). I wish I could make "csh" treat '#' as comment-leader. -- Larry West Institute for Cognitive Science (USA+619-)452-6220 UC San Diego (mailcode C-015) [x6220] ARPA: La Jolla, CA 92093 U.S.A. UUCP: {ucbvax,sdcrdcf,decvax,ihnp4}!sdcsvax!sdcsla!west OR ulysses!sdcsla!west