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 27905
- 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: Wed, 20 Jul 2022 07:58:03 -0700
- Archived-at: <https://zsh.org/users/27905>
- In-reply-to: <CAKc7PVA7e7bvsmZgEfUOAjZY=QJKitS8anKbYkYAMougmS0CXg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAKc7PVAbCrSRNZtQ_b3ZX3iBOe9tjNdFX8bV1BMKSb7Wxj=mZQ@mail.gmail.com> <CAH+w=7Y0=VyPygPw0mRCL1e8FV7r-v+Gm51E0PAwWjWPr1tEbw@mail.gmail.com> <CAKc7PVA7e7bvsmZgEfUOAjZY=QJKitS8anKbYkYAMougmS0CXg@mail.gmail.com>
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