From owner-freebsd-questions Thu Jan 20 18: 5:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 89E8315540 for ; Thu, 20 Jan 2000 18:05:17 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12BRm0-0004EA-00; Fri, 21 Jan 2000 00:17:56 +0000 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #1) id 12BRm0-0006fk-00; Fri, 21 Jan 2000 00:17:56 +0000 Date: Fri, 21 Jan 2000 00:17:56 +0000 From: Ben Smithurst To: cjclark@home.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sh(1) Messing with My Mind Message-ID: <20000121001756.A25494@strontium.scientia.demon.co.uk> References: <867h6j$1kk4$1@atlantis.rz.tu-clausthal.de> <200001202140.WAA05161@dorifer.heim3.tu-clausthal.de> <20000120175518.F72914@cc942873-a.ewndsr1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000120175518.F72914@cc942873-a.ewndsr1.nj.home.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Crist J. Clark wrote: > And although it does not impact me, there is another reason, and one > of the best ones, that someone would rather pipe to read than > backtick, > > (3) The backticked argument cannot have nested backticks. ben@strontium:~$ echo `ls \`pwd\`` .ICEauthority .KillLog .MsgLog .Xauthority .Xresources [snip] oh yes it can. :-) Of course, the $() form would be clearer, i.e. echo $(ls $(pwd)), especially with more than one level of nesting (which I've never even attempted). > Anyway, I guess I need to find a workaround. I figured I was missing > something obvious (something I already knew). Thanks for pointing it > out. hmm.. if the output is like "4 Fri 21 Jan 2000 00:15:59 GMT" as you say, then how about DATA=`awk whatever` set -- $DATA NUM=$1 shift; DATE="$*" would that work? -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message