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

Re: PATCH: nested ${(P)} (formerly SHWORDSPLIT and leading spaces)



On Nov 14, 12:07am, Jun T. wrote:
}
} It seems ${${(Pr.n.)name}} is behaving like ${(P)${(r.n.)name}}.
} Instead, the expected behavior may be ${(r.n.)${(P)name}}.

Yes, that definitely seems to be the issue.  The "Rules" say that (P) is
applied at step 4, whereas padding should not occur until step 22.

The flags (r), (l), and (j) are all applying in unexpected order with
respect to (P), but double-quote joining, (s), (f), and shwordsplit are
applied in the expected order, as also are (U), (L), (u), (o), (0), and
rcexpandparam.



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