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

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

[Emacs-bug-tracker] bug#7463: closed (truncate)


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#7463: closed (truncate)
Date: Mon, 22 Nov 2010 15:28:02 +0000

Your message dated Mon, 22 Nov 2010 15:32:04 +0000
with message-id <address@hidden>
and subject line Re: bug#7463: truncate
has caused the GNU bug report #7463,
regarding truncate
to be marked as done.

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


-- 
7463: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7463
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: truncate Date: Mon, 22 Nov 2010 09:41:33 -0500 User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10
truncate (GNU coreutils) 7.4

Unexpected behavior:

$ ls -l
total 0
$ truncate --size 0 *.log
$ ls
*.log

I would expect "truncate --size 0 *.log" to truncate any files ending with ".log"; instead I get a new file called "*.log"

FYI, one of the first changes I make on a new installation is to alias truncate in .bashrc:
alias ll='ls -l'
alias la='ls -A'
alias truncate='truncate --size 0'




--- End Message ---
--- Begin Message --- Subject: Re: bug#7463: truncate Date: Mon, 22 Nov 2010 15:32:04 +0000 User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
On 22/11/10 14:41, Rupert Bruce wrote:
> truncate (GNU coreutils) 7.4
> 
> Unexpected behavior:
> 
> $ ls -l
> total 0
> $ truncate --size 0 *.log
> $ ls
> *.log
> 
> I would expect "truncate --size 0 *.log" to truncate any files ending
> with ".log"; instead I get a new file called "*.log"
> 
> FYI, one of the first changes I make on a new installation is to alias
> truncate in .bashrc:
> alias ll='ls -l'
> alias la='ls -A'
> alias truncate='truncate --size 0'

That's a function of your shell.
Search for "nullglob"

cheers,
Pádraig.


--- End Message ---

reply via email to

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