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

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



On 10/13/23, Denis Bitouzé <dbitouze@xxxxxxxxxx> wrote:
> Hi,
>
> my configuration is the following:
>
> - GNU/Linux Mageia 9
> - zsh 5.9
> - oh my zsh (last version)
>
> The trouble I'm facing is the following:
>
> - `ls *.tex` gives the intended output,
> - `ls *.mp4` returns the following message: “ls : invalid option --
>   'M'”.
>
> Do you understand what's going on?

One (or more) of your files start with the string "--M", you want
either ls -- * or ls ./* (or print -rl - *)

-- 
Mikael Magnusson




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