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

Bug in banghist-like expansions?



Hey list,

Here's something I'm finding odd:

[snip]
zsh% : /foo/bar
zsh% print !$:s/\//l/
print lfoo/bar
lfoo/bar
zsh% baz=/foo/bar
zsh% print ${baz:s/\//l/}
zsh: unrecognized modifier
zsh% print ${baz:s,/,l,}
lfoo/bar
[snap]

I couldn't find a limitation in the manual about escaping the delimiter
in such expansions in `zshexpn(1)'. Is this a bug or am I missing
something?

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



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