Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: Bourne shell dosen't seem to rescan for quotes in variables. Message-ID: <8054@mimsy.UUCP> Date: Fri, 21-Aug-87 02:11:29 EDT Article-I.D.: mimsy.8054 Posted: Fri Aug 21 02:11:29 1987 Date-Received: Sat, 22-Aug-87 16:14:47 EDT References: <182@ksr.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 17 In article <182@ksr.UUCP> benson@seagoon.ksr.com (Benson Margulies) writes: [given] > FOO="my_command -P\"big dog\"" > exec $FOO >my_command gets called with argv[1] = -P"big and >argv[2] = dog" >whereas I want it to be called with one argument. Use eval exec $FOO to make sh rescan the expansion. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: seismo!mThomThomTa