🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1226

Re: how to make csh leave quotes on args

#1226
From: karl_kleinpaste
Date: Mon, 24 Sep 1990 18:21
17 lines
1090 bytes
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
Technical Details
Message-ID: <KARL.90Sep24142118@giza.cis.ohio-state.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cis.ohio-state.edu!karl_kleinpaste
References: <3883@cerberus.oakhill.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <KARL.90Sep24142118@giza.cis.ohio-state.edu>
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