Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

glob inside nested parameter expansion returns glob string



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


Messages sorted by: Reverse Date, Date, Thread, Author