zsh-users
 help / color / mirror / code / Atom feed
* (j.|.)
@ 2023-01-31 16:38 Ray Andrews
  2023-01-31 16:41 ` (j.|.) Roman Perepelitsa
  0 siblings, 1 reply; 16+ messages in thread
From: Ray Andrews @ 2023-01-31 16:38 UTC (permalink / raw)
  To: Zsh Users

Bart:

Your clipped comments and code:

# ${(j.|.)var} means to join an array with vertical bars; here the var 
is @ for the positional parameters.

# ${~something} means the value of something can be treated as a 
pattern, so the |-joined positional parameters form a pattern.

# "set --" replaces the original positional parameters with this array 
of parameter names.

set -- ${(ok)parameters[(I)${_v_case}${~${(j.|.)@}}]}

... I understand everything but the '(j.|.)' -- it seems ok like this:

     set -- ${(ok)parameters[(I)${_v_case}${~${@}}]}

... I see no vertical bars either before or after.  The PP's print as a 
spaced array either way.  But  you didn't but that in for no reason.  
Besides, the idea of joining the array seems backwards.





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

end of thread, other threads:[~2023-02-02  1:22 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31 16:38 (j.|.) Ray Andrews
2023-01-31 16:41 ` (j.|.) Roman Perepelitsa
2023-01-31 16:49   ` (j.|.) Ray Andrews
2023-01-31 17:50     ` (j.|.) Ray Andrews
2023-01-31 18:10       ` (j.|.) Roman Perepelitsa
2023-01-31 19:13         ` (j.|.) Ray Andrews
2023-01-31 20:19           ` (j.|.) Roman Perepelitsa
2023-01-31 21:50             ` (j.|.) Ray Andrews
2023-01-31 23:33               ` (j.|.) Lawrence Velázquez
2023-02-01  0:21                 ` (j.|.) Ray Andrews
2023-02-01  1:33                   ` (j.|.) Lawrence Velázquez
2023-02-01  1:59                     ` (j.|.) Ray Andrews
2023-02-01  2:14                       ` (j.|.) Ray Andrews
2023-02-01 22:47                         ` (j.|.) Ray Andrews
2023-02-02  0:43                           ` (j.|.) Lawrence Velázquez
2023-02-02  1:21                             ` (j.|.) Ray Andrews

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).