Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Commands with passwords as options
- X-seq: zsh-users 15763
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxx>
- Subject: Re: Commands with passwords as options
- Date: Wed, 02 Feb 2011 18:49:48 -0800
- In-reply-to: <AANLkTi=MUhdWLWuHWzMAcwt+0zRhfcwzHMpprjB=YK7O@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTi=vmDkSaef2r-gaMK=6en=EYyCsWbVppRsPwF5r@mail.gmail.com> <110201203449.ZM18939@torch.brasslantern.com> <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 ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author