Document how commands are passed to the shell for the -i and -s options.
The concatenation of command and arguments and escaping of special characters was not documented. Text adapted from GitHub issue #121 from Kris Rinzwind
This commit is contained in:
@@ -449,10 +449,17 @@ This means that login-specific resource files such as
|
||||
or
|
||||
\fI.login\fR
|
||||
will be read by the shell.
|
||||
If a command is specified, it is passed to the shell for execution
|
||||
via the shell's
|
||||
If a command is specified, it is passed to the shell as a simple
|
||||
command using the
|
||||
\fB\-c\fR
|
||||
option.
|
||||
The command and any arguments are concatenated, separated by spaces,
|
||||
after escaping each character
|
||||
(including white space)
|
||||
with a backslash
|
||||
(\(oq\e\(cq)
|
||||
except for alphanumerics, underscores,
|
||||
hyphens, and dollar signs.
|
||||
If no command is specified, an interactive shell is executed.
|
||||
\fBsudo\fR
|
||||
attempts to change to that user's home directory before running the
|
||||
@@ -624,10 +631,17 @@ Run the shell specified by the
|
||||
\fRSHELL\fR
|
||||
environment variable if it is set or the shell specified by the
|
||||
invoking user's password database entry.
|
||||
If a command is specified, it is passed to the shell for execution
|
||||
via the shell's
|
||||
If a command is specified, it is passed to the shell as a simple
|
||||
command using the
|
||||
\fB\-c\fR
|
||||
option.
|
||||
The command and any arguments are concatenated, separated by spaces,
|
||||
after escaping each character
|
||||
(including white space)
|
||||
with a backslash
|
||||
(\(oq\e\(cq)
|
||||
except for alphanumerics, underscores,
|
||||
hyphens, and dollar signs.
|
||||
If no command is specified, an interactive shell is executed.
|
||||
Note that most shells behave differently when a command is specified
|
||||
as compared to an interactive session; consult the shell's manual
|
||||
|
@@ -426,10 +426,17 @@ This means that login-specific resource files such as
|
||||
or
|
||||
.Pa .login
|
||||
will be read by the shell.
|
||||
If a command is specified, it is passed to the shell for execution
|
||||
via the shell's
|
||||
If a command is specified, it is passed to the shell as a simple
|
||||
command using the
|
||||
.Fl c
|
||||
option.
|
||||
The command and any arguments are concatenated, separated by spaces,
|
||||
after escaping each character
|
||||
.Pq including white space
|
||||
with a backslash
|
||||
.Pq Ql \e
|
||||
except for alphanumerics, underscores,
|
||||
hyphens, and dollar signs.
|
||||
If no command is specified, an interactive shell is executed.
|
||||
.Nm
|
||||
attempts to change to that user's home directory before running the
|
||||
@@ -582,10 +589,17 @@ Run the shell specified by the
|
||||
.Ev SHELL
|
||||
environment variable if it is set or the shell specified by the
|
||||
invoking user's password database entry.
|
||||
If a command is specified, it is passed to the shell for execution
|
||||
via the shell's
|
||||
If a command is specified, it is passed to the shell as a simple
|
||||
command using the
|
||||
.Fl c
|
||||
option.
|
||||
The command and any arguments are concatenated, separated by spaces,
|
||||
after escaping each character
|
||||
.Pq including white space
|
||||
with a backslash
|
||||
.Pq Ql \e
|
||||
except for alphanumerics, underscores,
|
||||
hyphens, and dollar signs.
|
||||
If no command is specified, an interactive shell is executed.
|
||||
Note that most shells behave differently when a command is specified
|
||||
as compared to an interactive session; consult the shell's manual
|
||||
|
Reference in New Issue
Block a user