Subject: Re: bug#7463: truncate

From: Erik Auerswald <[email-masked]>
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