Article View: comp.unix.shell
Article #72Re: shell problems
From: Tom Christiansen
Date: Wed, 04 Nov 1992 19:58
Date: Wed, 04 Nov 1992 19:58
23 lines
1478 bytes
1478 bytes
From the keyboard of dwhopkin@vela.acs.oakland.edu (Dave Hopkins):
:This is possible if each nested backquote is quoted in a _nested_ manner.
:
:Example (in Bourne Sys V Shell):
:
: echo `echo \`echo \\\`echo \\\\\\\`pwd\\\\\\\` \\\` \` `
:
:Although trivial, the above does work. What puzzles me is that the number
:of required backslashes follows this pattern: 1 3 7 11 15 ...
Insane.
$ echo $(echo $(echo $(echo $(pwd))))
is so much nicer.
--tom
--
Tom Christiansen tchrist@convex.com convex!tchrist
"The number of UNIX installations has grown to 10, with more expected."
- _The UNIX Programmer's Manual_, Second Edition, June, 1972.
Technical Details
Message-ID:
<1992Nov4.195856.21715@news.eng.convex.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!ukma!asuvax!cs.utexas.edu!convex!convex!tchristReferences:
<1992Oct31.115106.552@latcs1.lat.oz.au> <dwhopkin.720837062@vela>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!asuvax!cs.utexas.edu!convex!convex!tchrist
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: shell problems
Originator: tchrist@pixel.convex.com
Sender: usenet@news.eng.convex.com (news access account)
Message-ID: <1992Nov4.195856.21715@news.eng.convex.com>
Date: Wed, 4 Nov 1992 19:58:56 GMT
Reply-To: tchrist@convex.COM (Tom Christiansen)
References: <1992Oct31.115106.552@latcs1.lat.oz.au> <dwhopkin.720837062@vela>
Nntp-Posting-Host: pixel.convex.com
Organization: Convex Computer Corporation, Colorado Springs, CO
X-Disclaimer: This message was written by a user at CONVEX Computer
Corp. The opinions expressed are those of the user and
not necessarily those of CONVEX.
Lines: 23