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?
|
|---|