Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='b
Mike Stroyan wrote:
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(
Paul Jarc wrote:
Heinz-Ado Arnolds <[EMAIL PROTECTED]> wrote:
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 pa
(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/3-2217
FAX : +49/89/3-2388
email: arnolds[at]MPA-Garching.MPG.DE