Add more code to the case statements test

This commit is contained in:
Max Brunsfeld 2018-03-16 15:41:09 -07:00
parent b207579a5a
commit 2d96fc5fcb
1 changed files with 10 additions and 1 deletions

View File

@ -125,6 +125,12 @@ case "$Z" in
ab*|cd*) ef ab*|cd*) ef
esac esac
case $dest in
*.[1357])
exit $?
;;
esac
--- ---
(program (program
@ -135,7 +141,10 @@ esac
(command (command_name (word)) (word)))) (command (command_name (word)) (word))))
(case_statement (string (simple_expansion (variable_name))) (case_statement (string (simple_expansion (variable_name)))
(case_item (word) (word) (case_item (word) (word)
(command (command_name (word)))))) (command (command_name (word)))))
(case_statement (simple_expansion (variable_name))
(case_item (concatenation (word) (word))
(command (command_name (word)) (simple_expansion (special_variable_name))))))
=============================== ===============================
Subshells Subshells