Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Is it possible to clear empty :-tied elements?
- X-seq: zsh-users 27899
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Is it possible to clear empty :-tied elements?
- Date: Tue, 19 Jul 2022 17:18:16 -0700
- Archived-at: <https://zsh.org/users/27899>
- In-reply-to: <CAKc7PVAbCrSRNZtQ_b3ZX3iBOe9tjNdFX8bV1BMKSb7Wxj=mZQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAKc7PVAbCrSRNZtQ_b3ZX3iBOe9tjNdFX8bV1BMKSb7Wxj=mZQ@mail.gmail.com>
On Tue, Jul 19, 2022 at 12:55 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> export -UT CMAKE_PREFIX_PATH="$ZPFX:$CMAKE_PREFIX_PATH" cmake_prefix_path
>
> The problem is that the variable/array will contain empty element if the variable is empty when export is run.
Perhaps this is most easily done with
export -UT CMAKE_PREFIX_PATH="${ZPFX:+$ZPFX:}$CMAKE_PREFIX_PATH"
cmake_prefix_path
??
Messages sorted by:
Reverse Date,
Date,
Thread,
Author