[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: small fix required in tramp.el for solaris
From: |
Michael Albinus |
Subject: |
Re: small fix required in tramp.el for solaris |
Date: |
Wed, 06 Sep 2006 22:29:08 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Gilles Pion <address@hidden> writes:
> To make tramp works on solaris I think it is needed to backslash the "^"
> character in the sed commend after the "uname" command, because solaris's
> /bin/sh interprets unquoted "^" as a pipe.
I'm not confident whether this could have side effects on other
platforms. What about quoting the expression (does it work for you?):
*** /home/albinus/src/tramp/lisp/tramp.el.~2.505.~ Sun Sep 3 14:12:18 2006
--- /home/albinus/src/tramp/lisp/tramp.el Wed Sep 6 22:23:26 2006
***************
*** 5196,5202 ****
"^FreeBSD"
(with-connection-property vec "uname"
(tramp-send-command-and-read
! vec "(uname -sr) 2>/dev/null | sed -e s/^/\\\"/ -e s/\\$/\\\"/")))
500 0))))
;; Set remote PATH variable.
(tramp-set-remote-path vec)
--- 5196,5202 ----
"^FreeBSD"
(with-connection-property vec "uname"
(tramp-send-command-and-read
! vec "(uname -sr) 2>/dev/null | sed -e 's/^\\|$/\"/g'")))
500 0))))
;; Set remote PATH variable.
(tramp-set-remote-path vec)