Public Scratchpad | Download, Select Code To D/L |
This works in bash:
This does not:if [ ${mla} = ${local_auth_n} ]; then if [ -n "${partition_id}" ]; then echo ${mla} ${local_auth_n} ${partition_id} fi fi
What am I doing wrong? All the variables are always numerics except for ${partition_id} which may be blank or numeric.if [[ ${mla} = ${local_auth_n} && -n "${partition_id}" ]]; then echo ${mla} ${local_auth_n} ${partition_id} fi