Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh: correct 'sudo' to '_sudo' [nyae]?
- X-seq: zsh-users 4568
- From: Hannu Koivisto <azure@xxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: zsh: correct 'sudo' to '_sudo' [nyae]?
- Date: Mon, 07 Jan 2002 14:54:01 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <1020106030307.ZM7583@xxxxxxxxxxxxxxxxxxxxxxx> ("Bart Schaefer"'s message of "Sun, 6 Jan 2002 03:03:07 +0000")
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <87ofkvlh37.fsf@xxxxxxxxxxxxxxxx> <1020106030307.ZM7583@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: Hannu Koivisto <Hannu.Koivisto@xxxxxxxxxxx>
"Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx> writes:
> On Dec 19, 11:00am, Hannu Koivisto wrote:
>}
>} I always get this message when I start a new shell (whether by
>} logging to a system or by saying "zsh" when I'm logged on) and try
>} to run sudo even though sudo is in path. rehash doesn't help, but
>} "which sudo" always fixes the problem. What could be the culprit?
>
> It's not surprising that "rehash" doesn't help, as all that does is
> empty the command hash table, and correction treats the contents of the
> command hash table as the correct spellings.
Ok, I tried it just because it has helped for the same problem when
I have installed new software.
> Does "rehash -f" (both empty the command hash and refill it again) help?
No.
> Do you use the HASH_LIST_ALL option? Unless that option is set, the
> command hash table does not automatically fill itself during correction.
I don't use it but I tried setting it and it changed nothing.
--
Hannu
Messages sorted by:
Reverse Date,
Date,
Thread,
Author