Package: make
Version: 3.81-7
Severity: wishlist
X-debbugs-cc: bug-make@gnu.org

Me again. Same problem as before with the documentation.

`-n'
`--just-print'
`--dry-run'
`--recon'
     "No-op".  The activity is to print what commands would be used to
     make the targets up to date, but not actually execute them.

$ make -n a
mkdir -p /tmp/pots
make -n guts > /tmp/pots/`date +%s`
/bin/sh: /tmp/pots/1261073715: No such file or directory
make: *** [a] Error 1

This proves that some things really do get executed...
Which to me is just as dangerous as a Microsoft executable email to a
Windows user... I will shoot my own foot executing things I wrote but
didn't intend to execute, thinking make -n was as safe as sh -n.

$ cat Makefile
guts:
        export LC_ALL=zh_TW.UTF-8 &&\
        ./mec|xargs --verbose --no-run-if-empty w3m -no-cookie -cols 111 -dump
a:
        mkdir -p /tmp/pots
         $(MAKE) $(MFLAGS) guts > /tmp/pots/`date +%s`
        ls -og /tmp/pots



Hope the documentation gets fixed on Debian at least.
$ stat /usr/share/doc/make/changelog.gz|grep Mod
Modify: 2006-04-11 06:03:46.000000000 +0800
Seems Debian is stuck with four year old make.




_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to