by anderskaseorg · 11y ago · 0 comments
$ ./configure.sh
$ make
coqdep -c -slash -R . Falso "All.v" > "All.v.d" || ( RV=$?; rm -f "All.v.d"; exit ${RV} )
coqc -q -R . Falso All
$ make validate
coqchk -silent -o -R . Falso All
Type error
Makefile:133: recipe for target 'validate' failed
make: *** [validate] Error 1This usage is commonly found in other places than the shell, like JavaScript, Perl, and PHP.
some_cmd >foo.tmp && mv foo.tmp foo
The mv will do an atomic rename(), so that you either get the fully formed contents, or nothing at all.