24 lines
453 B
Plaintext
24 lines
453 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
rm -f csh-out shell-out
|
||
|
echo -e "\033[1;4;93mTest_wildcards5: cd; echo *\033[0m"
|
||
|
echo "cd" > shell-in
|
||
|
echo "echo *" >> shell-in
|
||
|
echo "echo .*" >> shell-in
|
||
|
|
||
|
echo "cd" > csh-in
|
||
|
echo "echo *" >> csh-in
|
||
|
echo "echo .*" >> csh-in
|
||
|
|
||
|
/bin/sh < csh-in > csh-out 2>&1
|
||
|
../shell < shell-in > shell-out 2>&1
|
||
|
|
||
|
diff shell-out csh-out
|
||
|
if [ $? -ne 0 ]
|
||
|
then
|
||
|
echo -e "\033[1;31m$0 Failed\033[0m"
|
||
|
exit -1
|
||
|
fi
|
||
|
echo -e "\033[1;32m$0 Passed\033[0m"
|
||
|
exit 0
|