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

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



On Wed, 20 Jul 2022 at 02:18, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:

Perhaps this is most easily done with

export -UT CMAKE_PREFIX_PATH="${ZPFX:+$ZPFX:}$CMAKE_PREFIX_PATH"
cmake_prefix_path

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…


--
Best regards,
Sebastian Gniazdowski



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