Bash 1.14.7 doesn't understand either "set +o history" or the HISTIGNORE
environment variable.  I think the best way to suppress bash's history stuff
for all versions is to set HISTFILE to /dev/null.  Appended is a patch that
works for me on the system with the original problem (RH5.2).  I also tried
it against RH6.1 and Mandrake6.1 with no problems.  This command has the
nice side effect of not causing a fuss with other shells that might object
to "set +o history".

-- 
Skip Montanaro ([EMAIL PROTECTED])
Support the Mojam.com Affiliates Program: http://www.mojam.com/affl/
(847)971-7098

*** /tmp/tramp.el.~1.436~       Tue Jan  9 11:28:31 2001
--- /tmp/tramp.el       Tue Jan  9 11:28:31 2001
***************
*** 3373,3387 ****
            (pop-to-buffer (buffer-name))
            (error "Couldn't `stty -onlcr', see buffer `%s'" (buffer-name))))))
    (erase-buffer)
!   (tramp-message 9 "Waiting 30s for `set +o history'")
    (process-send-string
!    nil (format "set +o history %s"      ;mustn't `>/dev/null' with AIX?
                 tramp-rsh-end-of-line))
    (unless (tramp-wait-for-regexp
             p 30
             (format "\\(\\$\\|%s\\)" shell-prompt-pattern))
      (pop-to-buffer (buffer-name))
!     (error "Couldn't `set +o history', see buffer `%s'"
             (buffer-name)))
    (erase-buffer)
    (tramp-message 9 "Waiting 30s for `set +o vi +o emacs'")
--- 3373,3387 ----
            (pop-to-buffer (buffer-name))
            (error "Couldn't `stty -onlcr', see buffer `%s'" (buffer-name))))))
    (erase-buffer)
!   (tramp-message 9 "Waiting 30s for `HISTFILE=/dev/null'")
    (process-send-string
!    nil (format "HISTFILE=/dev/null; export HISTFILE %s"      ;mustn't `>/dev/null' 
with AIX?
                 tramp-rsh-end-of-line))
    (unless (tramp-wait-for-regexp
             p 30
             (format "\\(\\$\\|%s\\)" shell-prompt-pattern))
      (pop-to-buffer (buffer-name))
!     (error "Couldn't `HISTFILE=/dev/null', see buffer `%s'"
             (buffer-name)))
    (erase-buffer)
    (tramp-message 9 "Waiting 30s for `set +o vi +o emacs'")

Reply via email to