Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11622

Something strange with string replacements

Newsgroups gnu.bash.bug
Date 2015-10-11 16:33 -0700
Message-ID <d960a94c-e3f0-4b5e-add2-1e3201da015e@googlegroups.com> (permalink)
Subject Something strange with string replacements
From gaspar.bin@gmail.com

Show all headers | View raw


Hello,

I was just testing if I could do some things with bash and the I came across this:
$ tigres="Un tigre, dos tigres, tres tigres"
$ echo ${tigres//[A-Z]/[a-z]}

tt [a-z][a-z][a-z][a-z][a-z], Ale cto kkk log nfs tes tmp tst www [a-z][a-z][a-z][a-z][a-z][a-z], aeat home kaka lmms Mail prog temp test Clases kernel kfreir Mariah Música system unbind Vídeos webdav

The reply was strange, Ale, cto, kkk, log, nfs, tes... are files in the current directory where I'm running this.

I was just testing, not trying to convert letters or so.

My bash Version: GNU bash, versión 4.3.11(1)-release (x86_64-pc-linux-gnu)

Thanks

Back to gnu.bash.bug | Previous | NextNext in thread | Find similar


Thread

Something strange with string replacements gaspar.bin@gmail.com - 2015-10-11 16:33 -0700
  Re: Something strange with string replacements Greg Wooledge <wooledg@eeg.ccf.org> - 2015-10-12 08:29 -0400
  Re: Something strange with string replacements gaspar.bin@gmail.com - 2015-10-13 10:11 -0700

csiph-web