Subject: Re: sh backtick deficiency?
To: John F. Woods <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
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/:.*//'`
$ grep string2 `grep -h string1 f?`
rtfm, eh? now does it work on v6? hmm?? :)
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."