From f4e598e85e028a76b2e71f8baa900ad62b5e4045 Mon Sep 17 00:00:00 2001 From: xonix Date: Fri, 15 Oct 2021 12:55:53 +0300 Subject: [PATCH] Improve parsing algorithm to handle spaces and comments #63 --- tests/21_parsing.tush | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/21_parsing.tush b/tests/21_parsing.tush index 06acff3..f757476 100644 --- a/tests/21_parsing.tush +++ b/tests/21_parsing.tush @@ -54,6 +54,16 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/21_parsing_quoting.sh -d | 'goal&c' | default +$ cd "$MYDIR"; bash -c "./$MAKESURE -f tests/21_parsing_quoting.sh -d default $'name with \' quote' 'goal|a'" +| Resolved goals to reach for 'default' $'name with \' quote' 'goal|a': +| no_space +| 'name with spaces' +| $'name with \' quote' +| 'goal|a' +| 'goal;b' +| 'goal&c' +| default + $ cd "$MYDIR"; ./$MAKESURE -f tests/21_parsing_quoting.sh | goal 'no_space' ... | no_space