all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: crocket <crockabiscuit@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: Michael Albinus <michael.albinus@gmx.de>, 19731@debbugs.gnu.org
Subject: bug#19731: 24.4; /dev/null is deleted by tramp-sh.el
Date: Tue, 3 Feb 2015 12:06:23 +0900	[thread overview]
Message-ID: <CAL0=0H1d-TgGtFByApo6P0r7pEjC5u4SVeYBHdo0ZdgsamYKNw@mail.gmail.com> (raw)
In-Reply-To: <ktfvaojcut.fsf@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]

Unsetting HISTFILE and setting HISTFILESIZE to 0 disables history logging
altogether on bash.
On Feb 3, 2015 5:08 AM, "Glenn Morris" <rgm@gnu.org> wrote:

> Michael Albinus wrote:
>
> >> It seems like a plain bug for bash to do what it does
> >
> > Looks to me like this.
>
> I don't think the bash folks disagree, but as always the question is
> what to do about it:
>
> http://lists.gnu.org/archive/html/bug-bash/2015-01/msg00138.html
>
> >> I wonder: what could Tramp do instead of setting HISTFILE to /dev/null?
> >> Could unsetting it result in the same behavior (i.e. not save Tramp's
> >> commands to any file)?
> >
> > That's how I understood the doc. Hope somebody will test it.
>
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/fc.html
>
> says that
>
>    If the HISTFILE variable is not set, the shell may attempt to access
>    or create a file .sh_history in the directory referred to by the HOME
>    environment variable.
>
> and indeed by experiment with bash 4.2.45, that is exactly what happes
> with HISTFILE unset and using "bash --posix".
>
> So (probably) you can't win.
>

[-- Attachment #2: Type: text/html, Size: 1697 bytes --]

  reply	other threads:[~2015-02-03  3:06 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30  5:18 bug#19731: 24.4; /dev/null is deleted by tramp-sh.el crocket
2015-01-30  9:38 ` crocket
2015-01-30  9:41 ` crocket
2015-02-02 11:44   ` Michael Albinus
     [not found]     ` <CAL0=0H0i02hc96VRz4HFnS9ztr2-1SxaykZiJ6mqPQxm5h2aag@mail.gmail.com>
     [not found]       ` <87mw4wjyqi.fsf@gmx.de>
2015-02-02 12:22         ` crocket
2015-02-02 12:45           ` Michael Albinus
2015-02-02 12:46             ` crocket
2015-02-02 13:04               ` Michael Albinus
2015-02-02 14:18                 ` crocket
2015-02-02 15:25                   ` Michael Albinus
2015-02-02 18:44                 ` Stefan Monnier
2015-02-02 19:50                   ` Michael Albinus
2015-02-02 20:08                     ` Glenn Morris
2015-02-03  3:06                       ` crocket [this message]
2015-02-03  8:34                         ` Michael Albinus
2015-02-03  9:10                           ` Andreas Schwab
2015-02-03  9:23                             ` Michael Albinus
2015-02-03 16:54                           ` Glenn Morris
2015-02-06 11:01 ` Alad Wenter
2015-02-08 10:05   ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAL0=0H1d-TgGtFByApo6P0r7pEjC5u4SVeYBHdo0ZdgsamYKNw@mail.gmail.com' \
    --to=crockabiscuit@gmail.com \
    --cc=19731@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.