Fix problems found while writing a test suite.
* net/tramp.el (tramp-file-name-regexp-unified): Simplify. (tramp-file-name-for-operation): Use `tramp-tramp-file-p'. (tramp-handle-substitute-in-file-name): Let-bind `process-environment' to nil when running original file name handler. Otherwise, there are problems with constructs like "$$FOO". * net/tramp-sh.el (tramp-do-copy-or-rename-file): Use correct prefix for `localname'.
Showing with 25 additions and 10 deletions