[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-patch] GNU patch version 2.7.1 released
From: |
Joachim Schmitz |
Subject: |
Re: [bug-patch] GNU patch version 2.7.1 released |
Date: |
Sun, 30 Sep 2012 12:50:49 +0200 |
> From: Andreas Grünbacher [mailto:address@hidden
> Sent: Sunday, September 30, 2012 12:26 PM
> To: Joachim Schmitz
> Cc: address@hidden
> Subject: Re: GNU patch version 2.7.1 released
>
> Joachim,
>
> 2012/9/30 Joachim Schmitz <address@hidden>:
> > The next patch would empty out the file target,
> > which is already empty!
>
> What is the length of the resulting file from "printf '\0' > target"?
> If you get an empty file, your printf utility is misbehaving, and the
$ printf '\0' >foo
$ ls -l foo
-rw-rw-r-- 1 jojo jojo 1 Sep 30 05:27 foo
$
Oops, that was /usr/local/bin/printf (from coreutils-8.15).
Using (the system provided) /bin/printf instead shows a 0 size, so you seem to
be right about a missbehavoir.
> problem is not with patch itself. Does "printf '\1' > target" work
> better?
Yes!
> What platform is this on?
HP NonStop
Bye, Jojo