]> git.eshelyaron.com Git - emacs.git/commitdiff
(substitute-env-vars): Quote the arg to rx.
authorRichard M. Stallman <rms@gnu.org>
Wed, 24 Oct 2001 22:49:12 +0000 (22:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 24 Oct 2001 22:49:12 +0000 (22:49 +0000)
lisp/env.el

index e19f9f7f5da2633c930dfdbcc553b7c20557bd9d..1da48e05ea999703d7b7fd5bc8e15ef533236131 100644 (file)
@@ -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))))