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

Re: Bug: [ "(" = ")" ] is true



On Dec 9,  5:31pm, Martijn Dekker wrote:
}
} Wow.
} 
} Not only that, the results are incorrect even after the removal.
} 
} $ test '(1' -eq ')2' && echo oops || echo ok
} oops

That's because the parens weren't removed, the entire argument that
contains each paren was removed.  [ \(1 -eq \)2 ] was becoming [ -eq ].



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