I would like to have the following command structure:
command && check-status | less && followup-command
This would pause the execution while the user interacted with less
. How can the user force less
to exit with a non-zero status to prevent followup-command
from running?
I am currently using less 458 (POSIX regular expressions)