Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!netsys!macomh!macom1!rikki From: rikki@macom1.UUCP (R. L. Welsh) Newsgroups: comp.unix.questions Subject: Re: Help with strings in Bourne shell Message-ID: <4843@macom1.UUCP> Date: 27 Apr 89 14:16:02 GMT References: <19311@adm.BRL.MIL> Organization: CENTEL Federal Systems, Reston, VA. 22091-1506 Lines: 43 From article <19311@adm.BRL.MIL>, by mchinni@pica.army.mil (Michael J. Chinni, SMCAR-CCS-E): > Jim Rudolf writes: >> If I have a Bourne script called 'foo' and I call it with the arguments: >> foo "color = red" "size = big" >> then from within foo they will be read as: >> $1 = "color = red" >> $2 = "size = big" >> However, I want to read from stdin (or maybe a redirected pipe), and I >> can't get it to work no matter what strange combination of quotes I use! >> I would like to do something like: >> read args >> for i in $args >> . >> . >> so I can process each string in turn. Why can't I get this to work? Try: \"x = value\" This worked for me -- you need to get the " passed to the for line. From vn Thu Apr 27 10:12:11 1989 Subject: Re: I Live Newsgroups: dfw.test References: <4498@psuvax1.cs.psu.edu> From article <4498@psuvax1.cs.psu.edu>, by Elvis@cup.portal.com (The King): > Just testing. > Elvis Hi Elvis. From vn Thu Apr 27 10:13:21 1989 Subject: Re: test Newsgroups: dc.test References: <12610@jhunix> Distribution: dc From article <12610@jhunix>, by tester@jhunix (tester): > testing Testing followup. -- - Rikki (UUCP: grebyn!macom1!rikki)