A crop of new capabilities
A crop of new capabilities
Posted Jun 12, 2020 2:24 UTC (Fri) by Jandar (subscriber, #85683)In reply to: A crop of new capabilities by kmweber
Parent article: A crop of new capabilities
I was going to say: it doesn't work that way, but I tested it before commenting. In reality it does work.
The only explanation I have is, that the manual shows contradicting usages.
1) from the Synopsis:
screen -r [[pid.]tty[.host]]
2) from the section COMMAND-LINE OPTIONS:
-r [pid.tty.host]
-r sessionowner/[pid.tty.host]
In 2) the pid seems to be not optional and the sessionname from -S sessionname
only substitutes tty.host. The text description for -r says "prefix of [pid.]tty.host" so pid seems optional.
I have never tested if screen -r sessionname works, I've always assumed pid is mandatory. *facepalm*
