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

Re: Parameter Expansion



On Sun, Aug 13, 2017 at 4:51 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> FUNCS=( $SD/autoload/*(:t) )

Oh, and if you want something more complicated, the above is
equivalent to using the "e" glob qualifier like so:

  $SD/autoload/*(e?'reply=( "$REPLY:t" )'?)

So you can do any substitution tricks you want on $REPLY.  Just
remember that it will contain exactly one filename at a time.



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