From: "Oliver Kiddle" <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: detecting superuser condition in completion
Date: Wed, 27 Feb 2002 09:17:46 +0000 (GMT) [thread overview]
Message-ID: <20020227091746.17010.qmail@web9302.mail.yahoo.com> (raw)
In-Reply-To: <001501c1bf68$4a8cccd0$21c9ca95@mow.siemens.ru>
--- Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru> wrote:
> Sometimes some options make sense only for superuser. Unfortunately
> testing for EUID is not enough because it does not work for
> completions
> after sudo (at least).
> Brute force method is to make _sudo set some variable and test for it
> later. Any better idea? If not, I guess we should agree on variable
> name
> or provide some helper like
>
> _is_superuser && _wanted ...
A variable seems best to me. _is_superuser could only differentiate
root as opposed to any user (less useful after su <user> -c ...) and
it'd probably need a variable underneath to work anyway.
Oliver
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
prev parent reply other threads:[~2002-02-27 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-27 8:25 Borsenkow Andrej
2002-02-27 9:17 ` Oliver Kiddle [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020227091746.17010.qmail@web9302.mail.yahoo.com \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).