Subject shell script
if I perform compare on the following
[[ 2 -eq 2 ]] && print OK
I get OK
But how to compare if the “-eq” is in my param
for example
param=”-eq”
[[ 2 $param 2 ]] && print OK
Obvious that not illegal
but I wonder if it possible anyway with some changes??
Lidia
I’m not sure why you would want to do this, but you could use
evalfor this: