Subject: Re: sh backtick deficiency?
To: None <firstname.lastname@example.org>
From: Geir Inge Jensen <Geir.I.Jensen@runit.sintef.no>
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
> 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
Geir Inge Jensen email@example.com