bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fails to eval sh environment


From: Paul Jarc
Subject: Re: Fails to eval sh environment
Date: Mon, 02 Jun 2003 13:57:41 -0400
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Philip Willoughby <pgw99@doc.ic.ac.uk> wrote:
> Bourne shell environment variable setting/exporting does not work from within
> a backtick expression.

That's the intended behavior.

> A workaround is to substitute
> `_command_`
>
> with
>
> _command_ > blah.$$ ; . blah.$$ ; rm -f blah.$$
>
> But this is not a good solution.

eval "`_command_`"


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]