bug-bash
[Top][All Lists]
Advanced

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

Re: BUG about quote removal inside parameter expansion.


From: Paul Jarc
Subject: Re: BUG about quote removal inside parameter expansion.
Date: Thu, 07 Nov 2002 15:48:31 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

TobiX <address@hidden> wrote:
> I have a variable which contains some random string. I need to include
> that string into an eval, or into the -c parameter of a bash invocation.
> (Why I have to do so is beyond the scope of this discussion.)
>
> In order to do so, I need to put the string inside single quotes and
> substitute every single quote in the string with '\'' .
> This is simpler than using double quotes and backslashing dollars, etc.

Regardless of the nature and existence of any bug here, your case is
easily handled by exporting the variable and then fetching it from the
environment.


paul




reply via email to

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