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

Re: path PATH




On 2023-01-24 12:42, Bart Schaefer wrote:

       set -- ${(ok)parameters[(I)${~${(j.|.)@}}]}
$parameters is an associative array, so you can subscript it with [ ]

Thanks.  Would have taken me a week to figure it all out.  One simply can't search for '(j.|.)' and home in on the answer, you hafta know head of time what kind of animal it is.  Inside out, vs. outside in.






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