]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Tramp bug#46625
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 19 Feb 2021 08:21:55 +0000 (09:21 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 19 Feb 2021 08:21:55 +0000 (09:21 +0100)
* test/lisp/net/tramp-tests.el (tramp-test33-environment-variables):
Adapt test.  (Bug#46625)

test/lisp/net/tramp-tests.el

index 9a83fa667613fb7f1d85af6d78043871ef449dc4..016b4d3c8f0cce521ff58056fbe2d299de48fb96 100644 (file)
@@ -5102,8 +5102,10 @@ INPUT, if non-nil, is a string sent to the process."
             (string-match-p
              (regexp-quote envvar)
              ;; We must remove PS1, the output is truncated otherwise.
+             ;; We must suppress "_=VAR...".
              (funcall
-              this-shell-command-to-string "printenv | grep -v PS1")))))))))
+              this-shell-command-to-string
+              "printenv | grep -v PS1 | grep -v _=")))))))))
 
 (tramp--test--deftest-direct-async-process tramp-test33-environment-variables
   "Check that remote processes set / unset environment variables properly.