Convert [ ... ] to test ... in scripting.

The "[" link may be missing during OS boostrapping.

* build.sh: Convert "[ ... ]" to "test ..."
* maintMakefile: Ditto.
* scripts/copyright-update: Ditto
* tests/scripts/features/reinvoke: Ditto
* tests/scripts/features/targetvars: Ditto
This commit is contained in:
Paul Smith
2020-05-03 13:39:55 -04:00
parent a015d1f822
commit c8a6263eb5
5 changed files with 16 additions and 16 deletions

View File

@@ -45,17 +45,17 @@ all: ; @echo hello
a : b ; echo >> $@
b : c ; [ -f $@ ] || echo >> $@
b : c ; test -f $@ || echo >> $@
c: ; echo >> $@
include $(F)',
'F=a', "[ -f b ] || echo >> b\nhello\n");
'F=a', "test -f b || echo >> b\nhello\n");
# Now try with the file we're not updating being the actual file we're
# including: this and the previous one test different parts of the code.
run_make_test(undef, 'F=b', "[ -f b ] || echo >> b\nhello\n");
run_make_test(undef, 'F=b', "test -f b || echo >> b\nhello\n");
&rmfiles('a','b','c');