Command based on Rampion’s command
screen /bin/sh -c '/usr/bin/man `cat "$@"` > /tmp/manual | less /tmp/manual || read'
|| read does not mean or in the command. read seems to be a built-in -command about which I did not find explanation in my OS X’s manuals.
What does || mean in the command?
||is nearly ‘or’ operator.In the code example above it will first run
less /tmp/manualand if it returns a value that is not true it will runread. If the first command returns a true value then the read command is not performed because of short circuiting.Thanks to Michiel: please note that the operator is not commutative such that it is not mathematical OR.