-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
119 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
Nothing at the moment. | ||
For "shell": | ||
|
||
* Nothing at the moment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.TH "SHELL" "1" "April 8, 2018" "Unix" "General Commands Manual" | ||
.TH "SHELL" "1" "April 15, 2018" "Unix" "General Commands Manual" | ||
.nh | ||
.if n .ad l | ||
.SH "NAME" | ||
|
@@ -7,12 +7,14 @@ | |
.SH "SYNOPSIS" | ||
.HP 6n | ||
\fBshell\fR | ||
[\fB\-f\fR] | ||
[\fB\-d\fR\ \fIdirectory\fR\ |\ \fB\-k\fR] | ||
[\fIshell\fR\ [\fI...\fR]] | ||
.br | ||
.PD 0 | ||
.HP 6n | ||
\fBshell\fR | ||
[\fB\-f\fR] | ||
[\fB\-s\fR\ \fIdirectory\fR] | ||
[\fB\-k\fR] | ||
[\fIshell\fR\ [\fI...\fR]] | ||
|
@@ -58,6 +60,10 @@ option, and conflicts with the | |
\fB\-s\fR | ||
option. | ||
.TP 8n | ||
\fB\-f\fR | ||
Force the execution of the given command, even if it is not a valid | ||
login shell on the current system. | ||
.TP 8n | ||
\fB\-k\fR | ||
Keep the temporary directory around after terminating the shell session. | ||
.TP 8n | ||
|
@@ -77,6 +83,11 @@ uses the following environment variables: | |
Directory in which to create the working directory when the | ||
\fB\-d\fR | ||
option is not used. | ||
This variable is used by | ||
\fBmktemp\fR | ||
which will revert to use | ||
\fI/tmp\fR | ||
if the variable is not set. | ||
.TP 8n | ||
\fRSHELL\fR | ||
Used to determine what shell to start if a specific | ||
|
@@ -184,14 +195,19 @@ $ exit | |
Removing /tmp/shell-ksh.4DzEG6qr | ||
.RE | ||
.fi | ||
.SH "SEE ALSO" | ||
mktemp(1) | ||
.SH "AUTHORS" | ||
Andreas Kusalananda K\[:a]h\[:a]ri <\fI[email protected]\fR> | ||
.SH "CAVEATS" | ||
For Solaris, the list of valid login shells is taken from the | ||
shells(4) | ||
manual on a Solaris 11.3 system. | ||
manual on a vanilla Solaris 11.4 system. | ||
This is because Solaris lacks | ||
\(lq\fBgetent shells\fR\(rq | ||
and may also lack the | ||
\fI/etc/shells\fR | ||
file. | ||
The | ||
\fI/etc/shells\fR | ||
file will still be used if it exists. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,11 @@ SHELL(1) - General Commands Manual | |
# SYNOPSIS | ||
|
||
**shell** | ||
\[**-f**] | ||
\[**-d** *directory* | **-k**] | ||
\[*shell* \[*...*]] | ||
**shell** | ||
\[**-f**] | ||
\[**-s** *directory*] | ||
\[**-k**] | ||
\[*shell* \[*...*]] | ||
|
@@ -57,6 +59,11 @@ The options are as follows: | |
> **-s** | ||
> option. | ||
**-f** | ||
|
||
> Force the execution of the given command, even if it is not a valid | ||
> login shell on the current system. | ||
**-k** | ||
|
||
> Keep the temporary directory around after terminating the shell session. | ||
|
@@ -81,6 +88,11 @@ uses the following environment variables: | |
> Directory in which to create the working directory when the | ||
> **-d** | ||
> option is not used. | ||
> This variable is used by | ||
> **mktemp** | ||
> which will revert to use | ||
> */tmp* | ||
> if the variable is not set. | ||
`SHELL` | ||
|
||
|
@@ -183,6 +195,10 @@ file copied from | |
$ exit | ||
Removing /tmp/shell-ksh.4DzEG6qr | ||
|
||
# SEE ALSO | ||
|
||
mktemp(1) | ||
|
||
# AUTHORS | ||
|
||
Andreas Kusalananda Kähäri <[[email protected]](mailto:[email protected])> | ||
|
@@ -191,11 +207,14 @@ Andreas Kusalananda Kähäri <[[email protected]](mailto:andreas | |
|
||
For Solaris, the list of valid login shells is taken from the | ||
shells(4) | ||
manual on a Solaris 11.3 system. | ||
manual on a vanilla Solaris 11.4 system. | ||
This is because Solaris lacks | ||
"**getent shells**" | ||
and may also lack the | ||
*/etc/shells* | ||
file. | ||
The | ||
*/etc/shells* | ||
file will still be used if it exists. | ||
|
||
Unix - April 8, 2018 | ||
Unix - April 15, 2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,11 @@ | |
.Nd Creates a temporary interactive shell session in a disposable working directory | ||
.Sh SYNOPSIS | ||
.Nm shell | ||
.Op Fl f | ||
.Op Fl d Ar directory | Fl k | ||
.Op Ar shell Op Ar ... | ||
.Nm | ||
.Op Fl f | ||
.Op Fl s Ar directory | ||
.Op Fl k | ||
.Op Ar shell Op Ar ... | ||
|
@@ -52,6 +54,9 @@ This option implies the | |
option, and conflicts with the | ||
.Fl s | ||
option. | ||
.It Fl f | ||
Force the execution of the given command, even if it is not a valid | ||
login shell on the current system. | ||
.It Fl k | ||
Keep the temporary directory around after terminating the shell session. | ||
.It Fl s Ar directory | ||
|
@@ -71,6 +76,11 @@ uses the following environment variables: | |
Directory in which to create the working directory when the | ||
.Fl d | ||
option is not used. | ||
This variable is used by | ||
.Cm mktemp | ||
which will revert to use | ||
.Pa /tmp | ||
if the variable is not set. | ||
.It Ev SHELL | ||
Used to determine what shell to start if a specific | ||
.Ar shell | ||
|
@@ -164,14 +174,19 @@ drwxrwxrwt 4 root wheel 512 Apr 8 18:49 .. | |
$ exit | ||
Removing /tmp/shell-ksh.4DzEG6qr | ||
.Ed | ||
.Sh SEE ALSO | ||
.Xr mktemp 1 | ||
.Sh AUTHORS | ||
.An Andreas Kusalananda K\[:a]h\[:a]ri Aq Mt [email protected] | ||
.Sh CAVEATS | ||
For Solaris, the list of valid login shells is taken from the | ||
.Xr shells 4 | ||
manual on a Solaris 11.3 system. | ||
manual on a vanilla Solaris 11.4 system. | ||
This is because Solaris lacks | ||
.Dq Cm getent shells | ||
and may also lack the | ||
.Pa /etc/shells | ||
file. | ||
The | ||
.Pa /etc/shells | ||
file will still be used if it exists. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ NAME | |
working directory | ||
|
||
SYNOPSIS | ||
shell [-d directory | -k] [shell [...]] | ||
shell [-s directory] [-k] [shell [...]] | ||
shell [-f] [-d directory | -k] [shell [...]] | ||
shell [-f] [-s directory] [-k] [shell [...]] | ||
|
||
DESCRIPTION | ||
The shell utility creates an interactive shell session with a clean | ||
|
@@ -34,6 +34,9 @@ DESCRIPTION | |
session terminates. This option implies the -k option, and | ||
conflicts with the -s option. | ||
|
||
-f Force the execution of the given command, even if it is not a | ||
valid login shell on the current system. | ||
|
||
-k Keep the temporary directory around after terminating the shell | ||
session. | ||
|
||
|
@@ -47,7 +50,8 @@ ENVIRONMENT | |
shell uses the following environment variables: | ||
|
||
TMPDIR Directory in which to create the working directory when the -d | ||
option is not used. | ||
option is not used. This variable is used by mktemp which will | ||
revert to use /tmp if the variable is not set. | ||
|
||
SHELL Used to determine what shell to start if a specific shell is not | ||
specified on the command line. | ||
|
@@ -116,12 +120,16 @@ EXAMPLES | |
$ exit | ||
Removing /tmp/shell-ksh.4DzEG6qr | ||
|
||
SEE ALSO | ||
mktemp(1) | ||
|
||
AUTHORS | ||
Andreas Kusalananda Kahari <[email protected]> | ||
|
||
CAVEATS | ||
For Solaris, the list of valid login shells is taken from the shells(4) | ||
manual on a Solaris 11.3 system. This is because Solaris lacks "getent | ||
shells" and may also lack the /etc/shells file. | ||
manual on a vanilla Solaris 11.4 system. This is because Solaris lacks | ||
"getent shells" and may also lack the /etc/shells file. The /etc/shells | ||
file will still be used if it exists. | ||
|
||
Unix April 8, 2018 Unix | ||
Unix April 15, 2018 Unix |
Oops, something went wrong.