6 # Run the test file in zsh and sh and get its output.
7 zsh $file &> $file.out.zsh
8 sh $file &> $file.out.sh
10 # Check if the output matches the expected one. If not abort with exit
12 diff -u $file.out $file.out.zsh
13 if [[ $? -ne 0 ]]; then
16 diff -u $file.out $file.out.sh
17 if [[ $? -ne 0 ]]; then
22 # Remove all temporary files.