From 025ec1a5caee267ccf655bb9ddc3320936f69d57 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 21 Feb 2016 12:46:20 -0500 Subject: eshtrans/frontend: Fix handling of single quote in double quotes --- (limited to 'eshtrans/frontend') diff --git a/eshtrans/frontend/lexer.esh b/eshtrans/frontend/lexer.esh index 6775bbc..d274076 100644 --- a/eshtrans/frontend/lexer.esh +++ b/eshtrans/frontend/lexer.esh @@ -498,6 +498,13 @@ scan_word() ;; \') word="${word}${c}" + if ${quoted}; then + case "${prev_c}" in + '') lgetc;; + *) c="${tmp_c}"; prev_c='';; + esac + continue + fi while :; do case "${prev_c}" in '') lgetc;; -- cgit v0.9.1