Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ls *.mp4 → ls : invalid option -- 'M'



On Fri, Oct 13, 2023 at 8:13 AM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
> It's more that it's up to the zsh user, and if they don't know what to
> do, they're going to ask the zsh users mailing list.  It's a very
> generic Unix shell issue; you can argue whether shells should work like
> this but it's way too late now.

It would be pretty easy to add a setopt that would prefix any glob
result that begins with '-' or Dash with "./".  (Or I suppose any glob
that doesn't start with '.' or '/' if that's more generic.)




Messages sorted by: Reverse Date, Date, Thread, Author