From 0a72d231a7d42396e3551f38eb63d55fea100669 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 20 Feb 2016 18:04:48 -0500 Subject: Rewrite codegen The previous version didn't handle nested or multiple command substitutions. The stack format has also been extended to support arithmetic expansions. --- (limited to 'parsing/lexer.sh') diff --git a/parsing/lexer.sh b/parsing/lexer.sh index 3f6f52f..a7fbb80 100644 --- a/parsing/lexer.sh +++ b/parsing/lexer.sh @@ -467,7 +467,8 @@ scan_wordexp() res="${res#*${RS}}" toks="${res%%${RS}*}" lineno=${ln_off} - wordexp="\$(${STX}${toks}${ETX})" + wordexp="\$(${SOH}C${STX}${toks}" + wordexp="${wordexp}${ETX})" # ")" is recognized in run_sublexer(). ;; esac -- cgit v0.9.1