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

Re: Getting rid of temporaries...



On Sep 10,  6:46pm, Danek Duvall wrote:
}
} There's still no way of expanding a glob inside ${}, short of ${$(echo *)},
} is there?

No, there's not, because filename generation is always done last.

On Sep 11,  8:29am, Oliver Kiddle wrote:
} Subject: Re: Getting rid of temporaries...
}
} >     print -l *.??.jpg(e['REPLY=${REPLY%.??.jpg}'])
} 
} Isn't that just the same as:
} 
}       print -l *.??.jpg(:r:r)

Yes, it is, but it's harder to generalize the latter to an arbitrary
name rewrite.  What if there weren't a dot before the number part?



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