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 19856
- From: Clint Adams <clint@xxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>, 246305-submitter@xxxxxxxxxxxxxxx
- Subject: Re: Bug#246305: zsh: completion for sudo doesn't add commands under root's path
- Date: Fri, 30 Apr 2004 11:39:37 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <17443.1083331282@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <877jw0gzp3.wl@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20040428130449.GA3198@xxxxxxxxxxx> <1040428160206.ZM29342@xxxxxxxxxxxxxxxxxxxxxxx> <20040430122712.GA2985@xxxxxxxxxxx> <17443.1083331282@xxxxxxxxxxxxxxxxxxxxx>
> That wouldn't work on my system here. It looks like there is a
> "SECURE_PATH" compile option to sudo which needs to be enabled before it
> uses a different path:
>
> % PATH=/usr/bin sudo printenv PATH
> /usr/bin
So probably the only reasonable thing to do is to default to current
PATH and I can put the appropriate overriding zstyle in the global zshrc
of the Debian package, or at least a note about it.
> Out of interest, is there any way to run a process detached from the tty?
> (the above sometimes prompts for a password.)
Does
sudo setsid sleep 600
do what you mean?
> If you use a style, give it a generic sounding name then. Perhaps it
> could be looked up from _command_names instead of _sudo. Keep in mind
> that people might want to do things like add to the existing path or
> remove `.'.
So... it should be eval'd?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author