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

BUG: small posix glitch in ${x%*}



As I read the spec, the smallest suffix that can match * is the null string; so

    x=123; echo ${x%*}

should output "123". Zsh (as of 5.7.1) drops the last character.

(The behaviour for prefixes is correct.)



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