remote execution in a different directory
Charles Curley
charlescurley at charlescurley.com
Fri Jul 28 12:40:40 MDT 2006
On Fri, Jul 28, 2006 at 10:23:24AM -0600, Byron Clark wrote:
> On 7/28/06, Charles Curley <charlescurley at charlescurley.com> wrote:
> >* One can nest $(), but not back ticks.
>
> I dislike back ticks as much as the next guy, but this (contrived)
> nested back tick command works in bash:
>
> echo `ls \`echo \\\`ls | grep elisp\\\`\``
Yep, that works, and the man page for BASH says that's the way to do
it. But it's uglier than a bill from a law office. So I will amend my
statement as follows:
* One can nest both $() and back ticks, but, as the latter requires
escaping which can get ugly, the former is likely more readable.
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
--
Charles Curley /"\ ASCII Ribbon Campaign
Looking for fine software \ / Respect for open standards
and/or writing? X No HTML/RTF in email
http://www.charlescurley.com / \ No M$ Word docs in email
Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20060728/2a7850e8/attachment.pgp
More information about the PLUG
mailing list