From 2d96fc5fcbe23449f03cb6cd68b4f6b8138ca1d1 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 16 Mar 2018 15:41:09 -0700 Subject: [PATCH] Add more code to the case statements test --- corpus/statements.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/corpus/statements.txt b/corpus/statements.txt index 37cca48..36f4760 100644 --- a/corpus/statements.txt +++ b/corpus/statements.txt @@ -125,6 +125,12 @@ case "$Z" in ab*|cd*) ef esac +case $dest in + *.[1357]) + exit $? + ;; +esac + --- (program @@ -135,7 +141,10 @@ esac (command (command_name (word)) (word)))) (case_statement (string (simple_expansion (variable_name))) (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