mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
Improve prompt when compaudit finds badness.
This commit is contained in:
parent
b0be035127
commit
b4d021263d
@ -1,3 +1,8 @@
|
||||
2001-04-06 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 13919: Completion/compinit: Clarify the prompt presented when
|
||||
the completion system detects insecure files/directories.
|
||||
|
||||
2001-04-06 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 13917: Src/params.c: test for unset in pipestatussetfn()
|
||||
|
@ -387,7 +387,8 @@ if [[ -n "$_i_check" ]]; then
|
||||
if ! eval compaudit; then
|
||||
if [[ -n "$_i_q" ]]; then
|
||||
if [[ "$_i_fail" = ask ]]; then
|
||||
if ! read -q "?There are insecure $_i_q, use them anyway [ny]? "; then
|
||||
if ! read -q "?Ignore insecure $_i_q and continue [ny]? "; then
|
||||
echo "$0: initialization aborted"
|
||||
unfunction compinit compdef
|
||||
unset _comp_dumpfile _comp_secure compprefuncs comppostfuncs \
|
||||
_comps _patcomps _postpatcomps _compautos _lastcomp
|
||||
|
Loading…
Reference in New Issue
Block a user