From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 4373e512 for ; Thu, 13 Feb 2020 01:30:02 +0000 (UTC) Received: (qmail 28811 invoked by alias); 13 Feb 2020 01:29:57 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45425 Received: (qmail 10126 invoked by uid 1010); 13 Feb 2020 01:29:57 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f176.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25718. spamassassin: 3.4.2. Clear:RC:0(209.85.208.176):SA:0(-1.9/5.0):. Processed in 1.743122 secs); 13 Feb 2020 01:29:57 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.176 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rzQZGGA3g3qSdqoJW3hoJyoIeh56LJje55mt/2zRiis=; b=Hg9AxFeOLbuGUHv91XoEb0okO1jGFzK+6soB8z6XTnW5MZa4UxlaKcCfhQWYneVzn0 Hq4TSGr6tnq7rJ761gnJjA+SGYjf7Xj9sqMAini4CLS3MVUwUK50CNpO9xYPkWS6FA/J BPfGpYWXF9kh5Uc/l0678/KfWIiBpv4ouc3LBxdjI5rdqmBTONeovLnOZoj0p0dYaLS/ 9nLRbpde+IY273JyDUey6MCw2KOi4a5r7i85oHij+iVYY+3JDuqDUkcU3dGpGu3r6TlO V+DMhY+yznD8T9QiO2HxuQvsRc35bxZwW8ku+kBKkVArg5Ke5cMpzSmvJ6TnfPLUCGVv 70dQ== X-Gm-Message-State: APjAAAWQT+dARVpCFFqWEbmWlR6F93UJEb9MRLlm+UMhooP9mWma4F1S f5rOsHtExcwoGp8QwNQxbdYatl1ZRFSk6U3vacvF5w== X-Google-Smtp-Source: APXvYqxDvxlegJXJ37FVJWioLQOoUyklEHd7GwxlVDrCTURXXSckVVB8m/XkuNuOU6AgiTB00Npw2GqA+622ov1RP+c= X-Received: by 2002:a2e:978d:: with SMTP id y13mr9369349lji.103.1581557360999; Wed, 12 Feb 2020 17:29:20 -0800 (PST) MIME-Version: 1.0 References: <912d22db-8a8f-90f2-6738-f9f395994dcb@gmail.com> <1770be62-54d8-70a6-8b05-cfc98faa9b9f@gmail.com> <20200210030219.527a3ccf@tarpaulin.shahaf.local2> <20200210192033.1bae83dc@tarpaulin.shahaf.local2> <17405-1581415941.062275@CNCV.ghXS.ifR-> In-Reply-To: From: Bart Schaefer Date: Wed, 12 Feb 2020 17:29:07 -0800 Message-ID: Subject: Re: sudo autocompletion To: dana Cc: Oliver Kiddle , Zsh hackers list , Daniel Shahaf Content-Type: multipart/alternative; boundary="000000000000b1cd2b059e6b04ff" --000000000000b1cd2b059e6b04ff Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 12, 2020, 5:21 PM dana wrote: > > PS: This does not fix `su -c` =E2=80=94 _su doesn't set _c_p_p, presumabl= y because > it > always prompts for a password. But since _c_p_p is passed directly to > eval, we > *could* make it set _c_p_p=3D( '' ), which would trick _command_names int= o > doing > the right thing. Is that too silly? > Compared to some of the other things we do? No. Just be sure not to include a comment about it so it's just as mysterious as most of those other tricks. (wink) --000000000000b1cd2b059e6b04ff--