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

Re: Is it possible to clear empty :-tied elements?



On Tue, Jul 19, 2022 at 10:41 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> I was hoping for some miracle but yes, that's apparently the best method, with a drawback– it's the longer variable that has to be wrapped in ${…:+}, making the line quite long/dense…

What about something like ${(j.:.)${(s:@:):-$ZPFX@$CMAKE_PREFIX_PATH}} ?




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