From e6507023a1de95a7fb9564cf4ae9569830142815 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Sat, 4 Jul 2015 17:41:07 -0700 Subject: [PATCH] Variables need to be more explicit So this regular expression needs to pick up the ending curly. --- elisp/shell-script-funcs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elisp/shell-script-funcs.el b/elisp/shell-script-funcs.el index ac1312f..05f273f 100644 --- a/elisp/shell-script-funcs.el +++ b/elisp/shell-script-funcs.el @@ -31,7 +31,7 @@ (concat (getenv "HOME") (substring str 1))) ;; Variables can either be simple $BLAH or ${some-larger}... - (let ((s (or (string-match "${\\([^ ]*\\)}" str) + (let ((s (or (string-match "${\\([^ }]*\\)}" str) (string-match "$\\([A-z_]*\\)" str))) (e (match-end 0))) (if (not s) ; No $ matches?