diff options
Diffstat (limited to 'parsing')
-rw-r--r-- | parsing/lexer.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/parsing/lexer.sh b/parsing/lexer.sh index a7fbb80..ad076dc 100644 --- a/parsing/lexer.sh +++ b/parsing/lexer.sh @@ -349,7 +349,10 @@ scan_wordexp() [@*#?$!A-Za-z0-9_-]) # String length # expansion - res="$(scan_param)" + if ! res="$(scan_param)" + then + exit 1 + fi ln_off=${res%%${RS}*} res="${res#*${RS}}" c="${res%%${RS}*}" @@ -422,7 +425,9 @@ scan_wordexp() fi if ${mod}; then # Get word. - res="$(scan_word true)" + if ! res="$(scan_word true)"; then + exit 1 + fi ln_off=${res%%${RS}*} res="${res#*${RS}}" c="${res%%${RS}*}" @@ -474,7 +479,9 @@ scan_wordexp() esac ;; [@*#?$!A-Za-z0-9_-]) - res="$(scan_param)" + if ! res="$(scan_param)"; then + exit 1 + fi ln_off=${res%%${RS}*} res="${res#*${RS}}" c="${res%%${RS}*}" |