bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Something strange with string replacements


From: gaspar . bin
Subject: Something strange with string replacements
Date: Sun, 11 Oct 2015 16:33:11 -0700 (PDT)
User-agent: G2/1.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]