# Run the test file in sh and zsh and get its output.
sh $file > $file.out.sh 2>&1
zsh $file > $file.out.zsh 2>&1
# Check if the output matches the expected one. If not abort with exit
# code 1.
# Run the test file in sh and zsh and get its output.
sh $file > $file.out.sh 2>&1
zsh $file > $file.out.zsh 2>&1
# Check if the output matches the expected one. If not abort with exit
# code 1.
- diff -u -N $file.out $file.out.sh || exit 1
- diff -u -N $file.out $file.out.zsh || exit 1
+ diff -u $file.out $file.out.sh || exit 1
+ diff -u $file.out $file.out.zsh || exit 1
+
+ # Remove temporary directory.
+ rm -rf tmp