* make-dist: Avoid "Bad fd number" error with dash.

This commit is contained in:
Glenn Morris 2019-02-01 17:56:25 -08:00
parent f31c83cba7
commit 4bce79d2a3

View file

@ -496,7 +496,7 @@ if [ "${make_tar}" = yes ]; then
case $default_gzip in
cat) tar $taropt -cf - $emacsname;;
*) if tar $taropt -cf /dev/null --use-compress-program="$default_gzip" \
$emacsname/src/lisp.h >& /dev/null
$emacsname/src/lisp.h > /dev/null 2>&1
then
tar $taropt -cf - --use-compress-program="$default_gzip" $emacsname
else