(substitute-env-vars): Quote the arg to rx.
This commit is contained in:
parent
b617a66b0f
commit
0209a386fb
1 changed files with 3 additions and 3 deletions
|
@ -59,9 +59,9 @@ the entire variable name in braces. Use `$$' to insert a single
|
|||
dollar sign."
|
||||
(let ((start 0))
|
||||
(while (string-match
|
||||
(rx (or (and "$" (submatch (1+ (in "a-zA-Z0-9_"))))
|
||||
(and "${" (submatch (minimal-match (0+ anything))) "}")
|
||||
"$$"))
|
||||
(rx '(or (and "$" (submatch (1+ (in "a-zA-Z0-9_"))))
|
||||
(and "${" (submatch (minimal-match (0+ anything))) "}")
|
||||
"$$"))
|
||||
string start)
|
||||
(cond ((match-beginning 1)
|
||||
(let ((value (getenv (match-string 1 string))))
|
||||
|
|
Loading…
Add table
Reference in a new issue