Skip to content

Commit

Permalink
Merge branch 'release/20180415'
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalananda committed Apr 15, 2018
2 parents 9d21976 + bd3d7da commit b568c70
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 44 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ How to install:
Please see the document called "INSTALL" in the source distribution.

Tested on:
OpenBSD 6.3, NetBSD 7.0.2, Ubuntu 16.10, Solaris 11.3
OpenBSD 6.3, NetBSD 7.1.2, Ubuntu 17.10, Solaris 11.4, CentOS 7


------------------------------------------------------------------------
Expand Down
4 changes: 3 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Nothing at the moment.
For "shell":

* Nothing at the moment.
20 changes: 10 additions & 10 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.195-487d6 for shell-toolbox 20180408.
# Generated by GNU Autoconf 2.69.195-487d6 for shell-toolbox 20180415.
#
# Report bugs to <https://github.com/kusalananda/shell-toolbox/issues>.
#
Expand Down Expand Up @@ -565,8 +565,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='shell-toolbox'
PACKAGE_TARNAME='shell-toolbox'
PACKAGE_VERSION='20180408'
PACKAGE_STRING='shell-toolbox 20180408'
PACKAGE_VERSION='20180415'
PACKAGE_STRING='shell-toolbox 20180415'
PACKAGE_BUGREPORT='https://github.com/kusalananda/shell-toolbox/issues'
PACKAGE_URL=''

Expand Down Expand Up @@ -1203,7 +1203,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures shell-toolbox 20180408 to adapt to many kinds of systems.
\`configure' configures shell-toolbox 20180415 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -1270,7 +1270,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of shell-toolbox 20180408:";;
short | recursive ) echo "Configuration of shell-toolbox 20180415:";;
esac
cat <<\_ACEOF
Expand Down Expand Up @@ -1347,7 +1347,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
shell-toolbox configure 20180408
shell-toolbox configure 20180415
generated by GNU Autoconf 2.69.195-487d6
Copyright (C) 2017 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1384,7 +1384,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by shell-toolbox $as_me 20180408, which was
It was created by shell-toolbox $as_me 20180415, which was
generated by GNU Autoconf 2.69.195-487d6. Invocation command line was
$ $0$ac_configure_args_raw
Expand Down Expand Up @@ -2272,7 +2272,7 @@ fi

# Define the identity of the package.
PACKAGE='shell-toolbox'
VERSION='20180408'
VERSION='20180415'


printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
Expand Down Expand Up @@ -3017,7 +3017,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by shell-toolbox $as_me 20180408, which was
This file was extended by shell-toolbox $as_me 20180415, which was
generated by GNU Autoconf 2.69.195-487d6. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -3072,7 +3072,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
shell-toolbox config.status 20180408
shell-toolbox config.status 20180415
configured by $0, generated by GNU Autoconf 2.69.195-487d6,
with options \\"\$ac_cs_config\\"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AC_PREREQ([2.69])
AC_INIT([shell-toolbox],[20180408],[https://github.com/kusalananda/shell-toolbox/issues])
AC_INIT([shell-toolbox],[20180415],[https://github.com/kusalananda/shell-toolbox/issues])

AC_CONFIG_AUX_DIR([build])

Expand Down
20 changes: 18 additions & 2 deletions doc/shell.man
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"
Expand All @@ -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]]
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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.
23 changes: 21 additions & 2 deletions doc/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ SHELL(1) - General Commands Manual
# SYNOPSIS

**shell**
\[**-f**]
\[**-d**&nbsp;*directory*&nbsp;|&nbsp;**-k**]
\[*shell*&nbsp;\[*...*]]
**shell**
\[**-f**]
\[**-s**&nbsp;*directory*]
\[**-k**]
\[*shell*&nbsp;\[*...*]]
Expand Down Expand Up @@ -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.
Expand All @@ -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`

Expand Down Expand Up @@ -183,6 +195,10 @@ file copied from
$ exit
Removing /tmp/shell-ksh.4DzEG6qr

# SEE ALSO

mktemp(1)

# AUTHORS

Andreas Kusalananda K&#228;h&#228;ri &lt;[[email protected]](mailto:[email protected])&gt;
Expand All @@ -191,11 +207,14 @@ Andreas Kusalananda K&#228;h&#228;ri &lt;[[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
17 changes: 16 additions & 1 deletion doc/shell.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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.
20 changes: 14 additions & 6 deletions doc/shell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand All @@ -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.
Expand Down Expand Up @@ -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
Loading

0 comments on commit b568c70

Please sign in to comment.