Function: vhdl-resolve-env-variable

vhdl-resolve-env-variable is a byte-compiled function defined in vhdl-mode.el.gz.

Signature

(vhdl-resolve-env-variable STRING)

Documentation

Resolve environment variables in STRING.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-resolve-env-variable (string)
  "Resolve environment variables in STRING."
  (while (string-match "\\(.*\\)\\${?\\(\\(\\w\\|_\\)+\\)}?\\(.*\\)" string)
    (setq string (concat (match-string 1 string)
			 (getenv (match-string 2 string))
			 (match-string 4 string))))
  string)