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

Re: Applying glob qualifiers to non-variable types



You can actually apply these kinds of operations to arrays, ie:

# read into array, linewise
files=( ${(f)"$(command)"} )

# use :t and :r on array - those apply per element
print -l ${files:t:r}

 - V

Attachment: pgpl1WIOrXjPs.pgp
Description: PGP signature



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