[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TRAMP can't expand local environment variable
From: |
Eli Zaretskii |
Subject: |
Re: TRAMP can't expand local environment variable |
Date: |
Sun, 27 Apr 2008 18:53:19 +0300 |
> From: Michael Albinus <michael.albinus@gmx.de>
> Date: Sun, 27 Apr 2008 11:55:41 +0200
> Cc: bug-gnu-emacs@gnu.org, "Ingersoll, Nelson" <Nelson.Ingersoll@atmel.com>
>
> + (defun tramp-replace-environment-variables (filename)
> + "Replace environment variables in FILENAME.
> + Return the string with the replaced variables."
> + (when (string-match "$\\w+" filename)
> + (setq filename
> + (replace-match
> + (substitute-in-file-name (match-string 0 filename))
> + t nil filename)))
> + filename)
Is there a way in Tramp to use file names with a literal $ in them,
and if so, would this code honor those literal $ characters?
Re: TRAMP can't expand local environment variable, Michael Albinus, 2008/04/27