summaryrefslogtreecommitdiffstats
path: root/eshtrans
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-21 18:50:22 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-21 18:50:22 (EST)
commitf6e7120e281cf7d26d1e1afb956414c55b21c644 (patch)
tree12c7b2c10d5fa6adfa60e83e150f58e6521c6c86 /eshtrans
parent347e8a75fb0e121b24bf5c275f02e583431b271f (diff)
downloadeggshell-f6e7120e281cf7d26d1e1afb956414c55b21c644.zip
eggshell-f6e7120e281cf7d26d1e1afb956414c55b21c644.tar.gz
eggshell-f6e7120e281cf7d26d1e1afb956414c55b21c644.tar.bz2
eshtrans/frontend: Escape "$" in patterns
Diffstat (limited to 'eshtrans')
-rw-r--r--eshtrans/frontend/lexer.esh6
1 files changed, 3 insertions, 3 deletions
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