From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users <zsh-users@zsh.org>
Subject: Re: Commands with passwords as options
Date: Wed, 02 Feb 2011 18:49:48 -0800 [thread overview]
Message-ID: <110202184948.ZM20148@torch.brasslantern.com> (raw)
In-Reply-To: <AANLkTi=MUhdWLWuHWzMAcwt+0zRhfcwzHMpprjB=YK7O@mail.gmail.com>
On Feb 2, 10:27pm, Julien Nicoulaud wrote:
}
} Perfect, thank you !
You're welcome. As soon as sourceforge gets our repository back on
line, I'll add it to Functions/Zle/.
} You can unset INVISIBLE in precmd too:
} unset_invisible () {unset INVISIBLE}
} add-zsh-hook precmd unset_invisible
Yes, but that doesn't really gain anything as the memory isn't really
erased; if someone can scan your process address space they're going
to find the password whether you've unset the variable or not.
I suppose it protects you from someone grabbing your keyboard and
typing "echo $INVISIBLE".
Hmm, that reminds me that you have to be careful with running a word-
expanding widget after $INVISIBLE is on the command line. I'm not
sure how best to deal with that one ...
next prev parent reply other threads:[~2011-02-03 2:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-01 21:15 Julien Nicoulaud
2011-02-01 21:28 ` Mikael Magnusson
2011-02-01 21:59 ` Julien Nicoulaud
2011-02-01 22:40 ` Benjamin R. Haskell
2011-02-01 22:57 ` Mikael Magnusson
2011-02-02 4:34 ` Bart Schaefer
2011-02-02 21:27 ` Julien Nicoulaud
2011-02-03 2:49 ` Bart Schaefer [this message]
2011-02-14 20:16 ` PJ Weisberg
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=110202184948.ZM20148@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.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 public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).