Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ls *.mp4 → ls : invalid option -- 'M'
On Sun, Oct 15, 2023 at 9:17 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> Or in the current dev build with named references:
>
> ls () {
> emulate -L zsh
> local -n f
> for f in {1..$#}
Oops, that should be
for f in argv\[{1..$#}\]
> do
> [[ $f = -* && -f $f ]] && f=./$f
> done
> command ls $*
> }
Forgot about the special case for $1 et al. that makes them not
directly referenceable.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author