Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to run a script that enters a man page and leaves it. Something like (in pseudo-code)
$ man man
How can I do such a thing? Preferably the exit code will be 0.
More generally how do I do this for any interactive program?
Required, but never shown
1 month ago