in reply to Re: How to know whether user terminates system("$cmd|more") with q or not?
in thread How to know whether user terminates system("$cmd|more") with q or not?

0 means the user hit q and non-zero means that 'more' terminated for some other reason

What value do you get if the user allows more to terminate on eof?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^2: How to know whether user terminates system("$cmd|more") with q or not?