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

Beginning of line matching



Hi all

I would have expected ${FOO/(#s)/X} and ${${FOO/(#m)(#s)?/X$MATCH}:-X}
to be equivalent, but it seems that only the second one has the desired
effect when FOO is not empty. Is there a reason the first doesn't behave
as I expected?


Thanks
Ian



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