Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!sri-unix!ctnews!pyramid!uccba!hal!ncoast!robertd From: robertd@ncoast.UUCP (Rob DeMarco) Newsgroups: comp.unix.questions Subject: Re: Bourne shell dosen't seem to rescan for quotes in variables. Message-ID: <4258@ncoast.UUCP> Date: Tue, 25-Aug-87 15:31:59 EDT Article-I.D.: ncoast.4258 Posted: Tue Aug 25 15:31:59 1987 Date-Received: Fri, 28-Aug-87 00:58:38 EDT References: <182@ksr.UUCP> Reply-To: robertd@ncoast.UUCP (Rob DeMarco) Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 22 In article <182@ksr.UUCP> benson@ksr.UUCP () writes: > >In an sh script -- > > FOO="my_command -P\"big dog\"" > exec $FOO Type "eval exec $FOO". eval will reevaluate quotes, variables, etc. Just like you typed the line: exec my_command -P"big dog" > >Questions: is this universal? is this correct? is there a better >avoidance? Yes, I believe so. eval is designed to overcome this. [> Rd -- North Coast Computer Resources(ncoast) - 216-781-6201 (or 781-6202) UUCP:decvax!cwruecmp!ncoast!robertd Sysop: NEODG (login "sbbs")