c96865f445
fix some more obscure bugs. a new redir4.tests is known to fail.
81 lines
875 B
Plaintext
Executable File
81 lines
875 B
Plaintext
Executable File
rm *shell_test* 2>/dev/null
|
|
|
|
>\shell_test
|
|
echo *shell_test*
|
|
rm *shell_test*
|
|
|
|
>\\shell_test
|
|
echo *shell_test*
|
|
rm *shell_test*
|
|
|
|
>"\shell_test"
|
|
echo *shell_test*
|
|
rm *shell_test*
|
|
|
|
>"\\shell_test"
|
|
echo *shell_test*
|
|
rm *shell_test*
|
|
|
|
|
|
cat <<\shell_test
|
|
Here1
|
|
shell_test
|
|
echo Ok1
|
|
|
|
cat <<\\shell_test
|
|
Here2
|
|
\shell_test
|
|
echo Ok2
|
|
|
|
cat <<"\shell_test"
|
|
Here3
|
|
\shell_test
|
|
echo Ok3
|
|
|
|
cat <<"\\shell_test"
|
|
Here4
|
|
\shell_test
|
|
echo Ok4
|
|
|
|
|
|
echo How with variable refs
|
|
i=1
|
|
|
|
|
|
>\shell_test_$i
|
|
echo *shell_test*
|
|
rm *shell_test*
|
|
|
|
>\\shell_test_$i
|
|
echo *shell_test*
|
|
rm *shell_test*
|
|
|
|
>"\shell_test_$i"
|
|
echo *shell_test*
|
|
rm *shell_test*
|
|
|
|
>"\\shell_test_$i"
|
|
echo *shell_test*
|
|
rm *shell_test*
|
|
|
|
|
|
cat <<\shell_test_$i
|
|
Here1
|
|
shell_test_$i
|
|
echo Ok1
|
|
|
|
cat <<\\shell_test_$i
|
|
Here2
|
|
\shell_test_$i
|
|
echo Ok2
|
|
|
|
cat <<"\shell_test_$i"
|
|
Here3
|
|
\shell_test_$i
|
|
echo Ok3
|
|
|
|
cat <<"\\shell_test_$i"
|
|
Here4
|
|
\shell_test_$i
|
|
echo Ok4
|