1. I was missing closing parentheses \), so adding it solves the issue. My code was like:
if [ \( <expr> ]; then <do this>; fi
2. My closing parentheses was not prefixed by space, so adding a space fixed it. It was like:
if [ \( <expr>\) ]; then <do this>; fi
No comments:
Post a Comment