bug-bash
[Top][All Lists]
Advanced

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

Quotes expanded incorrectly from backticks


From: Mark Thomas
Subject: Quotes expanded incorrectly from backticks
Date: Mon, 02 Jun 2003 18:11:57 +0100

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -g -O2
uname output: Linux beech 2.4.20-03doc #2 SMP Wed Mar 19 15:01:31 GMT 2003 i686 
unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
        Quotes in the output of a backtick command aren't expanded
correctly.

Repeat-By:
        Create a file, call it test.sh, and put in it:

-------------
export PATH="/bin:/usr/bin"
-------------

then execute:  `cat test.sh`

then echo $PATH, and you should see it has been set to:
"/bin:/usr/bin"
i.e. the quotes have been preserved.

Fix:
        A workaround is to:

backtick-command  > .blah.$$
. .blah.$$
rm -f .blah.$$




reply via email to

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