Article View: comp.unix.shell
Article #1691Re: Problem with sh/ksh quoting
From: Paul Chamberlain
Date: Thu, 01 Nov 1990 16:02
Date: Thu, 01 Nov 1990 16:02
27 lines
1216 bytes
1216 bytes
In article <16289@s.ms.uky.edu> kherron@ms.uky.edu (Kenneth Herron) writes: > line="this is 'a test'" > ... >I *want* it to produce: >this >is >a test Nice challenge. I finally got it, and you don't have to change things as dramatically as other people had posted. My method works like this: line='this is "a test"' eval set -- $line for word do echo $word done I couldn't figure out how to get eval to work like this: eval for word in $line ... I'm gonna start calling myself "The Shell Answer-man". Paul Chamberlain | I do NOT represent IBM. tif@doorstop, sc30661 at ausvm6 512/838-7008 | ...!cs.utexas.edu!ibmchs!auschs!doorstop.austin.ibm.com!tif
Technical Details
Message-ID:
<4101@awdprime.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!doorstop.austin.ibm.com!tifReferences:
<16289@s.ms.uky.edu> <3726@idunno.Princeton.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!doorstop.austin.ibm.com!tif From: tif@doorstop.austin.ibm.com (Paul Chamberlain) Newsgroups: comp.unix.shell Subject: Re: Problem with sh/ksh quoting Message-ID: <4101@awdprime.UUCP> Date: 1 Nov 90 16:02:46 GMT References: <16289@s.ms.uky.edu> <3726@idunno.Princeton.EDU> Sender: news@awdprime.UUCP Reply-To: tif@doorstop.austin.ibm.com (Paul Chamberlain) Distribution: na Organization: IBM AWD, Austin, TX Lines: 27