Re: RFE: allow double quotes to group multi-words & be treated as 1 arg,
From:
Marc Herbert
Subject:
Re: RFE: allow double quotes to group multi-words & be treated as 1 arg, w/DQ's stripped off -- including RH =~
Date:
Wed, 04 Aug 2010 11:50:21 +0100
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1
Le 04/08/2010 09:27, Davide Brini a écrit :
> From the Changelog:
>
> This document details the changes between this version, bash-3.2-alpha,
> and the previous version, bash-3.1-release.
> ...
> 3. New Features in Bash
> ...
> f. Quoting the string argument to the [[ command's =~ operator now forces
> string matching, as with the other pattern-matching operators.
Yet on 3.2.39 (Fedora 10) the old "quoted regex" behaviour was still there:
echo $BASH_VERSION
shopt compat31
w="/home/law/bin/package: line 5: type: xx: not found"
[[ $w =~ ".*not found.*" ]] && echo match
3.2.39(1)-release
compat31 off
match