I have a cycle in which the input data is checked. If the data is an empty string, then exit the loop. But I do not understand how to make the correct check for an empty string. This is how it does not work:
while [[ 1 -eq 1 ]] do read nm if [[ n=="" || m=="" ]] # This is the mistake then break fi done In this example, the condition always works.