tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command output, tabs, and OpenBSD


From: Dale Sedivec
Subject: Re: Command output, tabs, and OpenBSD
Date: Thu, 14 Oct 2010 17:51:38 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

On 10/14/10 2:55 AM, Michael Albinus wrote:
Could you, please, try the following patch (untested):

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/tramp-2-1-stable/lisp/tramp.el.~2.814.~   2010-08-23 
20:23:06.000000000 +0200
--- /home/albinus/src/tramp-2-1-stable/lisp/tramp.el    2010-10-14 
09:44:49.000000000 +0200
***************
*** 7062,7067 ****
--- 7062,7071 ----
           "^FreeBSD" (tramp-get-connection-property vec "uname" ""))
          500 0))))

+   ;; On BSD, ?\t is expanded to spaces.  Suppress this.
+   (when (string-match "BSD" (tramp-get-connection-property vec "uname" ""))
+     (tramp-send-command vec "stty -oxtabs" t))
+
     ;; Set remote PATH variable.
     (tramp-set-remote-path vec)

--8<---------------cut here---------------end--------------->8---

This patch fixed my issue when applied to TRAMP 2.1.18 in Emacs 23.2. Thanks!

stty's "-oxtabs" seems to exist for BSD only, that's why I have added the
check. It might not be sufficient for all cases; MACOSX (which is also
BSD-like) might return another string for "uname -s". Do you know what
it returns (you run it on your local machine).

        Indeed uname [-s] returns just "Darwin" on OS X.

$ uname
Darwin
$ uname -a
Darwin dale 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

Dale



reply via email to

[Prev in Thread] Current Thread [Next in Thread]