zsh-users
 help / color / mirror / code / Atom feed
* Is it possible to clear empty :-tied elements?
@ 2022-07-19 19:54 Sebastian Gniazdowski
  2022-07-20  0:18 ` Bart Schaefer
  2022-07-20 19:32 ` Phil Pennock
  0 siblings, 2 replies; 5+ messages in thread
From: Sebastian Gniazdowski @ 2022-07-19 19:54 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

Hi,
I'm using typeset -UT to unique a scalar variable:

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.

I wonder if is it possible to somehow clear such empty entry (i.e.: to
remove :: from "a::b") without another line of code?

-- 
Best regards,
Sebastian Gniazdowski

[-- Attachment #2: Type: text/html, Size: 1207 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-20 19:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 19:54 Is it possible to clear empty :-tied elements? Sebastian Gniazdowski
2022-07-20  0:18 ` Bart Schaefer
2022-07-20  5:40   ` Sebastian Gniazdowski
2022-07-20 14:58     ` Bart Schaefer
2022-07-20 19:32 ` Phil Pennock

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).