On 2/19/16 11:52 AM, Vehlow, Jörg wrote:
> when the option compatXX iss et through BASHOPTS, shopt will report it tob
> e set, but it is not applied.
Thanks for the report and fix.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' -
Hi,
when the option compatXX iss et through BASHOPTS, shopt will report it tob e
set, but it is not applied.
A simple test case is:
# compat31 enables the quoting of regular expressions
bash -c ' [[ "1" =~ "[1]" ]]; echo $?' --> Outut is 1
bash -c 'shopt -s compat31; [[ "1" =~ "[1]" ]]; echo $?'