If condition giving syntax error. Need help

Hi,

I have an if condition on executing it is giving syntax error as below:

line 61: syntax error in conditional expression
./play_test.sh: line 61: syntax error near ]' ./play_test.sh: line 61: if [[ “${Input_parameters[0]}” = “-h” ] || [ “${Input_parameters[0]}” = “–help” ] || [ “${No_of_input_params}” -lt 0 ]]’

What may be the issue?

Line 61 code is as below:

[CODE]if [[ "${Input_parameters[0]}" = "-h" ] || [ "${Input_parameters[0]}" = "--help" ] || [ "${No_of_input_params}" -lt 0 ]][/CODE]

Please help.

Regards,
Ramki

I don’t know anything about .sh, but from the info the error message is giving, it seems there is a single quote (') near the last ] ?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.