Return to BSD News archive
Xref: sserve comp.unix.user-friendly:2854 comp.unix.solaris:22519 comp.unix.programmer:19854 comp.unix.misc:13812 comp.unix.aux:15421 comp.unix.bsd:14848 comp.unix.aix:43781 Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!pipex!warwick!not-for-mail From: cudcv@csv.warwick.ac.uk (Rob McMahon) Newsgroups: comp.unix.user-friendly,comp.unix.solaris,comp.unix.programmer,comp.unix.misc,comp.unix.aux,comp.unix.bsd,comp.unix.aix Subject: Re: Shell wars Date: 5 Sep 1994 10:53:01 +0100 Organization: University of Warwick, Coventry, UK Lines: 21 Distribution: inet Message-ID: <34eppt$919@sprocket.csv.warwick.ac.uk> References: <33af70$8rd@usenet.INS.CWRU.Edu> <ROCKWELL.94Sep2081402@nova.umd.edu> <34d3f2$ca@sprocket.csv.warwick.ac.uk> <ROCKWELL.94Sep4164530@nova.umd.edu> NNTP-Posting-Host: sprocket.csv.warwick.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <ROCKWELL.94Sep4164530@nova.umd.edu>, rockwell@nova.umd.edu (Raul Deluth Miller) writes: >. >lpr `set | egrep \^lpargs | cut -d= -f2-` > >. Sorry, it doesn't work. This splits all the arguments at white >. space (returning 9 arguments "x" "y" "z" "x" "y" "z" "x" "y" "z" >. instead of 3 "x y z" "x y z" "x y z" in the example. Using quotes: > >Sorry, I don't normally worry about that issue. Try > >eval lpr `set | egrep \^lpargs | cut -d= -f2- | while read l; do echo > \"$l\"; done` Still doesn't work. I now get the 9 arguments '"x' 'y' 'z"' '"x' 'y' 'z"' '"x' 'y' 'z"'. Rob -- UUCP: ...!mcsun!uknet!warwick!cudcv PHONE: +44 203 523037 INET: cudcv@csv.warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England