With GNU screen (version 4), why is it that the following runs perfectly fine:
$ screen -S some-name
But if I try having a slash (
/) in the session name, it gives me an error about multiuser support.
$ screen -S some/name Must run suid root for multiuser support.
If I try setting the session name from within the screen:
$ screen C-a :sessionname some/name
I get the following error:
: bad session name 'some/name'
So apparently a
/ is invalid character for a session name. Looking at the man page for screen, I see nothing about invalid or reserved characters for
Set the name of the new session to sessionname. This option can be used to specify a meaningful name for the session in place of the default tty.host suffix. This name identifies the session for the screen -list and screen -r commands. This option is equivalent to the sessionname command (see Session Name).
8.5 Session Name — Command: sessionname [name]
(none) Rename the current session. Note that for screen -list the name shows up with the process-id prepended. If the argument name is omitted, the name of this session is displayed. Caution: The $STY environment variable still reflects the old name. This may result in confusion. The default is constructed from the tty and host names.
" in the session name complain about unmatched quotes which seems to be about syntax. E.g.,
:sessionname 'test"' gives
test" as the name. And
^B, etc. yield control characters.
What is the valid syntax or characters for a session name?