Subject: Re: sh backtick deficiency?
To: John F. Woods <>
From: Andrew Brown <>
List: current-users
Date: 04/02/1998 11:59:42
>The shell has *always* expanded backtick text into separate arguments, and
>it better keep doing so.  I just verified that it did so on 7th Edition UNIX
>thanks to the PDP11 simulator mentioned on this list a while back; I'd have
>verified it for V6, but V6 didn't have sed, my favorite test case.
>Consider the common data-reduction case of having a bunch of files, some of
>which you want to hand to a program based on whether they contain a string:
>$ grep string2 `grep string1 f? | sed -e 's/:.*//'`

how about

  $ grep string2 `grep -h string1 f?`

rtfm, eh?  now does it work on v6?  hmm??  :)

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"      * "information is power -- share the wealth."