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

Re: Parameter expansion bug?



Anthony Heading wrote:
> This does not print anything (at least with zsh 3.0.0) - shouldn't it print `-'?
> 
> % echo ${dqkjdkqdq:--}

In zsh echo - does not print anything and echo - -n prints -n.  How do you
print -n under bash?

Try

print -r - ${sdrgsdfdg:--}

Zoltan



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