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: Rupert Bruce <rbruce <at> nearshore.biz>
To: 7463 <at> debbugs.gnu.org
Subject: bug#7463: 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.