I want to make a oneliner loop that reads and checks what it read.
This surely won't work:
while [[ read line != "q" ]]; do; echo "enter q to quit: "; done
Zsh here tells me condition expected: read
.
Perhaps read
does not even have this concept of a return value.