From f6e7120e281cf7d26d1e1afb956414c55b21c644 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 21 Feb 2016 18:50:22 -0500 Subject: eshtrans/frontend: Escape "$" in patterns --- (limited to 'eshtrans/frontend') diff --git a/eshtrans/frontend/lexer.esh b/eshtrans/frontend/lexer.esh index 3c8cb27..46ba310 100644 --- a/eshtrans/frontend/lexer.esh +++ b/eshtrans/frontend/lexer.esh @@ -590,7 +590,7 @@ scan_wordexp() ;; esac ;; - [@*#?$!A-Za-z0-9_-]) + [@*#?\$!A-Za-z0-9_-]) if ! res="$(scan_param)"; then exit 1 fi @@ -620,7 +620,7 @@ scan_wordexp_param_brace() '#') lgetc case "${c}" in - [@*#?$!A-Za-z0-9_-]) + [@*#?\$!A-Za-z0-9_-]) # String length expansion if ! res="$(scan_param)"; then exit 1 @@ -734,7 +734,7 @@ scan_param() param='' case "${c}" in - [@*#?$!0-]) + [@*#?\$!0-]) # Special parameter param="${c}" lgetc -- cgit v0.9.1