bug-bash
[Top][All Lists]
Advanced

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

Shopt ignored in process substitutions


From: Nikolai Kondrashov
Subject: Shopt ignored in process substitutions
Date: Wed, 28 Jan 2015 11:48:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0

Hi everyone,

I've noticed a change in Bash 4.3.30 and 4.3.33, compared to 4.2.53, which
looks like a bug.

With the older versions this:

    bash -c 'cat < <(shopt -s extglob'$'\n''echo !(*))'

would output this:

    !(*)

which is fine.

However, the newer versions would fail like this:

    bash: command substitution: line 2: syntax error near unexpected token `('
    bash: command substitution: line 2: `echo !(*))'

Is this intended? If not, can this be fixed?

Thank you.

Nick



reply via email to

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