mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf.
This commit is contained in:
parent
8167316fd6
commit
cf62106878
1 changed files with 4 additions and 2 deletions
|
|
@ -3960,8 +3960,10 @@ variable PATH."
|
|||
(format "PATH=%s; export PATH"
|
||||
(mapconcat 'identity (tramp-get-remote-path vec) ":")))
|
||||
(pipe-buf
|
||||
(with-tramp-connection-property vec "pipe-buf"
|
||||
(tramp-send-command-and-read vec "getconf PIPE_BUF /")))
|
||||
(or (with-tramp-connection-property vec "pipe-buf"
|
||||
(tramp-send-command-and-read
|
||||
vec "getconf PIPE_BUF / 2>/dev/null || echo nil" 'noerror))
|
||||
4096))
|
||||
tmpfile)
|
||||
(tramp-message vec 5 "Setting $PATH environment variable")
|
||||
(if (< (length command) pipe-buf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue