tag 29421 notabug
close 29421
stop

On 23/11/17 17:01, wangjian wrote:
> Hi there, I think this is a bug
> 
> mkdir empty_foler
> cd empty_foler
> touch a
> echo "abc" | tr [:blank:] +  # you will get “+bc” as output, instead of “abc”
> touch b
> echo "abc" | tr [:blank:]  # you will get “bbc” as output, instead of “abc”
> 
> My system info:
> CentOS release 6.7 (Final)
> linux kernel version 2.6.32-573.el6.x86_64

You must have a file called "a" in the current directory.
You'll need to quote so the shell doesn't change it on you.
I.E:

  echo "a bc" | tr '[:blank:]' +
  a+bc

cheers,
Pádraig



Reply via email to