Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#246305: zsh: completion for sudo doesn't add commands under root's path
- X-seq: zsh-workers 19847
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#246305: zsh: completion for sudo doesn't add commands under root's path
- Date: Wed, 28 Apr 2004 16:02:06 +0000
- Cc: 246305-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <20040428130449.GA3198@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <877jw0gzp3.wl@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20040428130449.GA3198@xxxxxxxxxxx>
On Apr 28, 9:04am, Clint Adams wrote:
}
} (PATH="root's:path:for:sudo"; rehash; print $commands)
}
} or glob for executable files in that path or is there a better solution?
How about:
local -a +h commands path
path=( ... )
compadd -a commands
The more interesting question, I think, would be where to get an accurate
value for root's sudo path without first being root.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author