zsh-users
 help / color / mirror / code / Atom feed
* glob inside nested parameter expansion returns glob string
@ 2022-04-21 17:24 Jim
  2022-04-21 18:51 ` Mikael Magnusson
  0 siblings, 1 reply; 5+ messages in thread
From: Jim @ 2022-04-21 17:24 UTC (permalink / raw)
  To: zsh

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

Hi,

The following two statements produce the expected results:

% A=(${:-.z*(.N)})
% A=(${A:#*(comp|hist)*})

When trying to nest the two, the result is the glob statement:

A=(${${:-.z*(.N)}:#*(comp|hist)*})

Trying to understand why this is the case.  Could someone explain why this
happens?
Is there a way to nest the two?

Thanks for your help,

Jim Murphy

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

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

end of thread, other threads:[~2022-04-21 21:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 17:24 glob inside nested parameter expansion returns glob string Jim
2022-04-21 18:51 ` Mikael Magnusson
2022-04-21 19:15   ` Bart Schaefer
2022-04-21 20:37     ` Jim
2022-04-21 21:00       ` Jim

Code repositories for project(s) associated with this 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).