--- untouched_coreutils/coreutils-8.28/tests/split/filter.sh 2018-12-06 18:54:43.447222280 -0800 +++ coreutils-8.28/tests/split/filter.sh 2018-12-11 16:39:06.031860988 -0800 @@ -41,15 +41,16 @@ done # Show how --elide-empty-files works with --filter: # split does not run the command (and effectively elides the file) # only when the output to that command would have been empty. -split -e -n 10 --filter='xz > $FILE.xz' /dev/null || fail=1 +touch empty_file.txt +split -e -n 10 --filter='xz > $FILE.xz' empty_file.txt || fail=1 returns_ 1 stat x?? 2>/dev/null || fail=1 # Ensure this invalid combination is flagged -returns_ 1 split -n 1/2 --filter='true' /dev/null 2>&1 || fail=1 +returns_ 1 split -n 1/2 --filter='true' empty_file.txt 2>&1 || fail=1 # Ensure SIGPIPEs sent by the children don't propagate back # where they would result in a non zero exit from split. -yes | head -n200K | split -b1G --filter='head -c1 >/dev/null' || fail=1 +yes | head -n200K | split -b1G --filter='head -c1 >empty_file.c' || fail=1 # Ensure that "endless" input is ignored when all filters finish for mode in '' 'r/'; do