On 30.05.2015 19:53, Paul Smith wrote: > On Mon, 2015-05-25 at 19:02 +0200, Andreas Freimuth wrote: >> make segfaults after a >> $(file > bug) >> statement. >> >> How to reproduce: >> $ mkdir /tmp/makeBUG && cd /tmp/makeBUG >> $ echo '$(file > bug)' > makefile >> $ make >> >> Tested with: >> >> GNU Make 4.0 >> Built for x86_64-redhat-linux-gnu > > In GNU make 4.0, that statement was invalid. You always had to provide > a second argument containing something to write to the file (it could be > empty). If you use: > > $ echo '$(file > bug,)' > makefile > > (note added comma after bug) then you'd get expected behavior with no > core dump. Of course, the core dump was obviously a bug. I know, this comes pretty close to what i want, except the new line.
>> GNU Make 4.1 >> Built for x86_64-unknown-linux-gnu > > In GNU make 4.1, it is now legal to simply omit the argument altogether. > I don't see any core dump in this version; please verify that you're > really running GNU make 4.1 when you see this problem. See the NEWS > file for 4.1: > >> * Allow a no-text-argument form of the $(file ...) function. Without a >> text argument nothing is written to the file: it is simply opened in the >> requested mode, then closed again. Your probably right. Can not reproduce it with make-4.1 either. And bash-history indicates that I might have missed '/usr/local/bin/' some times when I was testing the latest release. So.. Thanks and sorry for the noise. -- Andreas Freimuth
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make