remote execution in a different directory

Byron Clark byron.clark at gmail.com
Fri Jul 28 10:41:28 MDT 2006


On 7/28/06, Ryan Simpkins <plug at ryansimpkins.com> wrote:
>
>
> On Fri, July 28, 2006 10:23, 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\\\`\``
> >
>
> So which one makes more sense:
>
> echo `ls \`echo \\\`ls | grep elisp\\\`\``
> Or
> echo ${ls ${echo ${ls | grep elisp}}}

I think you meant to use () instead of {}, otherwise your second
example (and the rest of the message) doesn't make sense.

I think using $() instead of back ticks is always more clear.  I was
just showing that you _can_ nest back ticks.


More information about the PLUG mailing list