Zsh Mailing List Archive
Messages sorted by:
Reverse Date
,
Date
,
Thread
,
Author
Re: join a string with a parameter value if it's not empy
X-seq
: zsh-users 28899
From
: Eric Nielsen <ericbn@xxxxxxx>
To
: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>, sergio <sergio@xxxxxxxxxxxxx>
Subject
: Re: join a string with a parameter value if it's not empy
Date
: Fri, 03 Feb 2023 22:30:14 -0500
Archived-at
: <https://zsh.org/users/28899>
In-reply-to
: <
f7dce72b-274e-b754-8e1c-7bc92e822479@outerface.net
>
List-id
: <zsh-users.zsh.org>
> Is it possible to construct an array without a tmp parameter?
I can think of:
${(j:_:)${=:-$p string whatever else}}
--
Sent with
HEY
References
:
Re: join a string with a parameter value if it's not empy
From:
sergio
Messages sorted by:
Reverse Date
,
Date
,
Thread
,
Author