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



Reply via email to