aboutsummaryrefslogtreecommitdiffstats
path: root/core/erlc.mk
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2015-06-19 12:08:28 +0200
committerJean-Sébastien Pédron <[email protected]>2015-06-19 12:08:28 +0200
commit0040f93ccd5f4aa6db719741fcd6335c48d1390d (patch)
tree97a34e84b8428d5b1ee74535fa1269b45e4ec631 /core/erlc.mk
parent1b9e73c99561e0661862b10f3c5fd9dbb8cc1f0f (diff)
downloaderlang.mk-0040f93ccd5f4aa6db719741fcd6335c48d1390d.tar.gz
erlang.mk-0040f93ccd5f4aa6db719741fcd6335c48d1390d.tar.bz2
erlang.mk-0040f93ccd5f4aa6db719741fcd6335c48d1390d.zip
dep_autopatch: Ensure ['s `!=` operator has operands
Consider the following test: elif [ 0 != `find ... | xargs grep -ci rebar` ]; then find(1) may return no file at all and xargs has nothing on its stdin. In this case, GNU xargs (from findutils) still executes the given command and grep(1) returns 0. However, FreeBSD's xargs for instance does not run the command at all if there is nothing on stdin. Therefore nothing is printed on stdout and the test becomes: elif [ 0 != ]; then This triggers a warning from the shell: [: !=: argument expected Prepending both operands with a literal 'x' fixes the problem. For consistency's sake, I modified the two other tests as well, though I didn't have any problem with them.
Diffstat (limited to 'core/erlc.mk')
0 files changed, 0 insertions, 0 deletions