more error checking for hash builtin; fix for [[ builtin and some test syntax errors

This commit is contained in:
Chet Ramey
2023-09-13 16:25:28 -04:00
parent 32826f717d
commit 94bce520e8
25 changed files with 1898 additions and 1707 deletions
+4
View File
@@ -61,6 +61,10 @@ echo returns: $?
[[ -z $UNSET ]]
echo returns: $?
# need to handle test syntax errors and longjmp
[[ -t X ]]
echo returns: $?
# the ==/= and != operators do pattern matching
[[ $TDIR == /usr/homes/* ]]
echo returns: $?