diff options
-rw-r--r-- | parsing/codegen.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/parsing/codegen.sh b/parsing/codegen.sh index 0e32987..2b5f904 100644 --- a/parsing/codegen.sh +++ b/parsing/codegen.sh @@ -74,7 +74,13 @@ codegen_sub() IFS="${RS}" for t in ${array}; do toktext "${t}" - printf ' ' + case "${t%${US}*}" in + T_NEWLINE) + ;; + *) + printf ' ' + ;; + esac done unset IFS } @@ -108,7 +114,8 @@ parse_stack() 'C') # Command substitution sgetc # STX - array="${array}$(parse_stack)" + array="${array}$(parse_stack)." + array="${array%.}" ;; 'A') # Arithmetic expansion |