Machine Type: i686-pc-linux-gnu
Bash Version: 3.2
Patch Level: 25
Release Status: release
Description:
Pattern replacing doesn't work like documented with special
characters "*" and "?" as replacment strings
Repeat-By:
a=111.1
echo ${a//[0-9]/x}
correctly gives "xxx.x", but
echo ${a//[0-9]/*}
gives a listing of files in current directory. Seems that the "*"
is expanded before replacing the pattern.
It workes the right way at least up to bash-3.1.17(1)-release
But if you set
a=111
it doesn't even work in 3.1.17 right.
Kind regards,
H.-A. Arnolds
--
________________________________________________________________________
Dipl.-Ing. Heinz-Ado Arnolds
MPI fuer Astrophysik
Karl-Schwarzschild-Strasse 1
D-85748 Garching
Phone: +49/89/30000-2217
FAX : +49/89/30000-2388
email: arnolds[at]MPA-Garching.MPG.DE
________________________________________________________________________