Subject: Re: sh backtick deficiency?
To: None <feyrer@rfhs8012.fh-regensburg.de>
From: Geir Inge Jensen <Geir.I.Jensen@runit.sintef.no>
List: current-users
Date: 03/30/1998 10:50:10
On 30 Mar, Hubert Feyrer wrote:
> 
> What's the exact semantics on backtick expansion in /bin/sh? Up to a few
> minutes ago, i was under the impression that whatever the command in the
> backticks outputs is handed as _one_ argument, just as enclosed in double
> quotes.
> 
> Now our /bin/sh seems to pass every word as a single argument:
> 
> $ cat /tmp/cm
> Network sniffer, via FreeBSD PR ports/6160.
> $ cvs add -m `cat /tmp/cm` sniffit
> cvs [add aborted]: no such directory `ports'
> 
> So, is it just me, or is it our shell? If the latter, tell me and I'll
> send-pr this.

I think you have to use 

	cvs add -m "`cat /tmp/cm`" sniffit

Otherwise, cvs will try to add most of the output of that command as
files...

bye,
-- 
Geir Inge Jensen                                    gij@jk.priv.no
                                                    http://www.jk.priv.no/