> From: Andreas Grünbacher [mailto:[email protected]] > Sent: Sunday, September 30, 2012 12:26 PM > To: Joachim Schmitz > Cc: [email protected] > Subject: Re: GNU patch version 2.7.1 released > > Joachim, > > 2012/9/30 Joachim Schmitz <[email protected]>: > > 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
