GNU bug report logs - #7463
truncate

Previous Next

Package: coreutils;

Reported by: Rupert Bruce <rbruce <at> nearshore.biz>

Date: Mon, 22 Nov 2010 14:39:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Rupert Bruce <rbruce <at> nearshore.biz>
Subject: bug#7463: closed (Re: bug#7463: truncate)
Date: Mon, 22 Nov 2010 15:28:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#7463: truncate

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 7463 <at> debbugs.gnu.org.

-- 
7463: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7463
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: Rupert Bruce <rbruce <at> nearshore.biz>
Cc: 7463-done <at> debbugs.gnu.org
Subject: Re: bug#7463: truncate
Date: Mon, 22 Nov 2010 15:32:04 +0000
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.

[Message part 3 (message/rfc822, inline)]
From: Rupert Bruce <rbruce <at> nearshore.biz>
To: bug-coreutils <at> gnu.org
Subject: truncate
Date: Mon, 22 Nov 2010 09:41:33 -0500
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'




This bug report was last modified 14 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.