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: Erik Auerswald <auerswal <at> unix-ag.uni-kl.de>
To: Rupert Bruce <rbruce <at> nearshore.biz>
Cc: 7463 <at> debbugs.gnu.org
Subject: bug#7463: truncate
Date: Mon, 22 Nov 2010 16:21:08 +0100
Hi,

On Mon, Nov 22, 2010 at 09:41:33AM -0500, 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"

That is caused by your shell, see the "nullglob" option (at least for
bash).

Erik
-- 
Trying to understand [the GNU GPL] in terms of the goals and values
of open source is like trying [to] understand a CD drive's retractable
drawer as a cupholder.
                        -- Richard Stallman




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

Previous Next


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