Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site sequent.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!hplabs!tektronix!ogcvax!sequent!merlyn From: merlyn@sequent.UUCP Newsgroups: net.unix Subject: Re: question about csh quoting Message-ID: <489@sequent.UUCP> Date: Tue, 8-May-84 09:46:39 EDT Article-I.D.: sequent.489 Posted: Tue May 8 09:46:39 1984 Date-Received: Fri, 18-May-84 00:07:17 EDT References: <433@noscvax.UUCP> Organization: Sequent Computer Systems, Portland Lines: 30 > From: sloane@noscvax.UUCP > Message-ID: <433@noscvax.UUCP> > Date: Mon, 7-May-84 07:52:51 PDT > > "The UNIX Programming Environment" by Kernighan and Pike (copyright 1984 > by Bell Labs) states the following: > "...Quotes of one kind protect quotes of the other kind: > $ echo "Don't do that!" > Don't do that! > $ > ..." > When I tried that (4.2bsd with csh) it did the following: > %echo "Don't do that!" > ": Event not found. > % > Is this something different in the c-shell, or is this an error in > the c-shell? Different in the C-shell. You have an exclamation mark in your command line, and that takes higher precedence than even single quotes (sometimes icky!). To get C-shell to echo "Don't do that!", you need to say: % echo "Don't do that\!" and all will be fine. -- A particularly personal and original observation from the thought-stream of Randal L. ("C shell seller by C shore") Schwartz, esq. (merlyn@sequent.UUCP) (Official Legendary Sorcerer of the 1984 Summer Olympics) Sequent Computer Systems, Inc. (503)626-5700 (sequent = 1/quosine) UUCP: {decwrl,ogcvax,pur-ee,rocks34,shell,unisoft,vax135,verdix}!sequent!merlyn