zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Tameling <tamelingdaniel@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: [Bug] Strange Globing Behaviour when used with sudo
Date: Sun, 3 Jun 2018 20:48:26 +0200	[thread overview]
Message-ID: <20180603184826.xmmjp7woexdivyl7@Daniels-MacBook-Air.local> (raw)
In-Reply-To: <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


  reply	other threads:[~2018-06-03 18:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-30 17:11 Bengt Brodersen
2018-05-30 18:06 ` Bart Schaefer
2018-05-30 19:15   ` Daniel Shahaf
2018-05-30 20:23     ` Phil Pennock
2018-05-30 20:44       ` Bengt Brodersen
2018-05-30 20:49         ` Bengt Brodersen
2018-05-31  8:44           ` Peter Stephenson
     [not found]           ` <20180531094403.05b62bee@camnpupstephen.cam.scsc.local>
2018-05-31  8:49             ` Peter Stephenson
2018-05-31 11:39               ` Jun T
2018-05-31 15:29                 ` Peter Stephenson
2018-05-31 18:15                   ` Daniel Tameling
2018-06-01 14:08                     ` Jun T.
2018-06-02 18:17                       ` Daniel Tameling
2018-06-03 16:30                         ` Jun T.
2018-06-03 18:48                           ` Daniel Tameling [this message]
2018-06-03 19:17                             ` dana
2018-06-04  1:23                               ` Jun T
2018-06-04 12:48                           ` Jun T
2018-06-14 12:26           ` Bengt Brodersen
2018-05-31  6:37       ` Martijn Dekker

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=20180603184826.xmmjp7woexdivyl7@Daniels-MacBook-Air.local \
    --to=tamelingdaniel@gmail.com \
    --cc=zsh-workers@zsh.org \
    /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).