Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!cis.ohio-state.edu!karl_kleinpaste From: karl_kleinpaste@cis.ohio-state.edu Newsgroups: comp.unix.shell Subject: Re: how to make csh leave quotes on args Message-ID: Date: 24 Sep 90 18:21:18 GMT References: <3883@cerberus.oakhill.UUCP> Sender: news@tut.cis.ohio-state.edu Organization: Ohio State Computer Science Lines: 17 hunter@oakhill.uucp writes: Does anyone know how to force csh to leave the quotes on args and pass them down to a command? You have to quote the quoting. Either set string = '"this is an argument"' where single-quotes preserve everything literally, or if you have a grotesque fascination for backslashes, set string = \"this\ is\ an\ argument\" where backslash forces the following character to be interpreted as an ordinary character. Double quotes preserve whitespace in a string and prevent globbing (that is, wildcard matching of *?[]) but permit interpolation of variables; single quotes cause no interpretation at all. --karl