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

Re: set -o nounset; foo=(); print ${foo:#bar}



# schaefer@xxxxxxxxxxxxxxxx / 2014-09-06 12:34:33 -0700:
> I don't immediately see a simple code change that would do so, but I'm
> sure it can eventually be fixed.

cool!  btw will this be tracked somewhere?

> You can use ${foo##bar(#e)} with extendedglob, I think, but it may
> depend on context.  Without extendedglob I don't see a good way.

(reminder to self: (#e) is like $ in REs)

thanks a lot!  extendedglob is fine and the workaround works perfectly.

-- 
roman



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