Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [Bug] Strange Globing Behaviour when used with sudo
- X-seq: zsh-workers 42924
- From: Daniel Tameling <tamelingdaniel@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [Bug] Strange Globing Behaviour when used with sudo
- Date: Sun, 3 Jun 2018 20:48:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=Qt+rqMmIvMbhNpERg2t3x11DxPAJKhJVriogseMAcQs=; b=WnQ9Ut8+ZxKN5Hj5DTDFGwVDlS7mAfYIJFTaIHwOLm/IFEpvRJOPpXj+YoDx4Hg/Jg r1kBIHCUQh6BmgNoM5+v9rMQhh670qOkrxIYAMlh2ueGmpjjDUerPiVAdWMK9vsl5YJT PS9WHgkHNtEit+jlDBCaWCdDkxkeZO9L7Ur3Tjb/u5GQ5Id8+JFSqQwLFNaLrujP6Kr9 AgizFEQhGfyu8Wz53lRJk8G2Ij7+KIYGLxyFoGsDTERO5MtPIIExYSmPWB0lfCxOiILI Z6dy41CxO61Txg3iCbPepmhYMPylfWiobKFILChMpOOwYo3oV0IhXHT+7Ct9nKPZMZK2 zxVw==
- In-reply-to: <7D035B65-A2BA-49F3-807D-A387FF4FE6DB@kba.biglobe.ne.jp>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20180530205013epcas1p21e3a53e151d3696ad475913d56ced3db@epcas1p2.samsung.com> <CAMaoPXwFdVPszgra5busqtLNqAKsJxDV56LPW9ZrtUbg=tbSMQ@mail.gmail.com> <20180531094403.05b62bee@camnpupstephen.cam.scsc.local> <20180531084938eucas1p19a854d9e9ea17428cd6549f56a283356~zroN76sl33019130191eucas1p1K@eucas1p1.samsung.com> <3977A049-90E6-4EDD-9E4C-8D2FF38593A3@kba.biglobe.ne.jp> <20180531152941eucas1p2c45927fa47f727224e2da98b4f6a7604~zxFgS-BM50307003070eucas1p2G@eucas1p2.samsung.com> <20180531181546.osffv3ysjzaxjfid@Daniels-MacBook-Air.local> <01B9BB58-DDAE-4056-AD9A-2367DC3AC20D@kba.biglobe.ne.jp> <20180602181719.vzcnij3fvx7eueuk@Daniels-MacBook-Air.local> <7D035B65-A2BA-49F3-807D-A387FF4FE6DB@kba.biglobe.ne.jp>
On Mon, Jun 04, 2018 at 01:30:14AM +0900, Jun T. wrote:
>
> Do we need to fix (or workaround) this problem, given that
> very basic commands like "ls" are also broken on macOS?
Personally, I would say no.
I find that the workarounds make the code very ugly. Then there is the
resulting inconsistency with other commands. Moreover, as the
weirdness occurs only with sudo, it is also very difficult to make
sure that we fix all that could go wrong and don't introduce any
unwanted side effects since globbing with sudo will be rarely used.
So I wouldn't do anything, but would also be fine with something small
that addressed the original problem, like your previous patch.
> > Btw:
> > I noticed bash manages to trigger the ls error message when zsh
> > outputs "no matches found"
> > $ bash -c 'ls */..'
> > ls: cannot access '*/..': No such file or directory
>
> Try 'setopt no_nomatch'. See the option NOMATCH in zshoptions(1).
Thanks.
--
Best,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author