I would like to recreate something like this
if ( arg1 || arg2 || arg 3) {}
And I did got so far, but I get the following error:
line 11: [.: command not found
if [ $char == $';' -o $char == $'\\' -o $char == $'\'' ]
then ...
I tried different ways, but none seemed to work. Some of the ones I tried.
For Bash, you can use the
[[ ]]form rather than[ ], which allows&&and||internally:Otherwise, you can use the usual Boolean logic operators externally:
…or use operators specific to the
testcommand (though modern versions of the POSIX specification describe this XSI extension as deprecated — see the APPLICATION USAGE section):…which is a differently written form of the following, which is similarly deprecated: