emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#9719: closed (i found a bug)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#9719: closed (i found a bug)
Date: Mon, 10 Oct 2011 17:21:02 +0000

Your message dated Mon, 10 Oct 2011 11:20:20 -0600
with message-id <address@hidden>
and subject line Re: bug#9719: i found a bug
has caused the debbugs.gnu.org bug report #9719,
regarding i found a bug
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
9719: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9719
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: i found a bug Date: Tue, 11 Oct 2011 00:55:18 +0800
address@hidden ~]# echo " aa           bb                 cc             dd      ee   "| tr -s [:blank:]
 a           bb                 cc             dd      ee   
address@hidden ~]# echo " aa           bb                 cc             dd      ee   "| tr -s " "
 aa bb cc dd ee 
address@hidden ~]#

i can not use like "[:blank:]"

--- End Message ---
--- Begin Message --- Subject: Re: bug#9719: i found a bug Date: Mon, 10 Oct 2011 11:20:20 -0600 User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15
tag 9719 notabug
thanks

On 10/10/2011 10:55 AM, Ovear wrote:
address@hidden ~]# echo " aa           bb                 cc
dd      ee   "| tr -s [:blank:]
  a           bb                 cc             dd      ee

Thanks for the report. However, this is not a bug in tr, but a bug in your usage of the shell. I suspect that you have a file in the current directory that is named with a single character, such that the shell glob [:blank:] is expanding to the name of that file.

address@hidden ~]# echo " aa           bb                 cc
dd      ee   "| tr -s " "
  aa bb cc dd ee
address@hidden ~]#

i can not use like "[:blank:]"

Yes you can, if you quote it so the shell can't treat it as a glob:

# echo " aa           bb                 cc
> dd      ee   "| tr -s "[:blank:]"
 aa bb cc dd ee

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--- End Message ---

reply via email to

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