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: Steve Ward <planet36 <at> gmail.com>
To: Rupert Bruce <rbruce <at> nearshore.biz>
Cc: 7463 <at> debbugs.gnu.org
Subject: bug#7463: truncate
Date: Mon, 22 Nov 2010 10:32:25 -0500
[Message part 1 (text/plain, inline)]
On Mon, Nov 22, 2010 at 09:41, Rupert Bruce <rbruce <at> nearshore.biz> 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'
>
>
>
>
>

In newer versions of truncate there is a "--no-create" option.



Steve
[Message part 2 (text/html, inline)]

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.