[Top][All Lists]

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

problems with special chars in comment inside of $() or ``

From: Tobias C. Rittweiler
Subject: problems with special chars in comment inside of $() or ``
Date: Sun, 2 Feb 2003 22:43:55 +0100

Hello bug-bash,

Please CC me, since I haven't subscribed to the list.

Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -g -O2
uname output: Linux brood 2.5.59 #1 Thu Jan 23 19:58:32 CET 2003 i586 unknown 
unknown GNU/Linux
Machine Type: i586-pc-linux-gnu

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

        The ``parser'' of bash gets confused when it encounters special
        chars in comments inside of command substitution constructs ($()
        and ``).

        $ cat >test <<EOF
        echo 1:$(
                    # a simple ( test
                    echo 2
        $ . test
        $ rm -f test
        An attempt is attached, though I don't consider it to be a
        good solution, but at least it works for me.

 Tobias                                       <address@hidden>

http://freebits.org   - "Unix? What's that? Is that like Linux?  "
http://rocklinux.org  - "I'm a hacker, and I'm using ROCK Linux. "

"In heaven all the interesting people are missing."
 -- Friedrich Nietzsche

"Freedom is just Chaos, with better lighting."
 -- Alan Dean Foster

Attachment: bash-2.05b-allow-grouping-chars-in-comments-inside-cmdsubst.diff
Description: Binary data

reply via email to

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