shrink a bit

This commit is contained in:
tg 2004-12-13 19:18:01 +00:00
parent 27aff60a34
commit 955d52cb21
2 changed files with 17 additions and 48 deletions

View File

@ -1,4 +1,4 @@
/** $MirBSD: src/bin/ksh/history.c,v 2.3 2004/12/13 19:09:06 tg Exp $ */ /** $MirBSD: src/bin/ksh/history.c,v 2.4 2004/12/13 19:18:01 tg Exp $ */
/* $OpenBSD: history.c,v 1.24 2004/08/03 12:44:59 danh Exp $ */ /* $OpenBSD: history.c,v 1.24 2004/08/03 12:44:59 danh Exp $ */
/* /*
@ -21,16 +21,10 @@
#include "sh.h" #include "sh.h"
#include "ksh_stat.h" #include "ksh_stat.h"
__RCSID("$MirBSD: src/bin/ksh/history.c,v 2.3 2004/12/13 19:09:06 tg Exp $"); __RCSID("$MirBSD: src/bin/ksh/history.c,v 2.4 2004/12/13 19:18:01 tg Exp $");
#ifdef HISTORY #ifdef HISTORY
# ifdef EASY_HISTORY # ifndef EASY_HISTORY
# ifndef HISTFILE
# define HISTFILE ".mksh_history"
# endif
# else
/* Defines and includes for the complicated case */ /* Defines and includes for the complicated case */
# include <sys/file.h> # include <sys/file.h>

View File

@ -1,4 +1,4 @@
.\" $MirBSD: src/bin/ksh/ksh.1tbl,v 2.3 2004/12/13 19:09:06 tg Exp $ .\" $MirBSD: src/bin/ksh/ksh.1tbl,v 2.4 2004/12/13 19:18:01 tg Exp $
.\" $OpenBSD: ksh.1tbl,v 1.79 2004/12/04 07:05:13 jaredy Exp $ .\" $OpenBSD: ksh.1tbl,v 1.79 2004/12/04 07:05:13 jaredy Exp $
.\" $OpenBSD: sh.1tbl,v 1.53 2004/12/10 01:56:56 jaredy Exp $ .\" $OpenBSD: sh.1tbl,v 1.53 2004/12/10 01:56:56 jaredy Exp $
.\" .\"
@ -53,8 +53,8 @@
.. ..
.Sh NAME .Sh NAME
.Nm ksh , .Nm ksh ,
.Nm mksh , .Nm sh ,
.Nm sh .Nm mksh
.Nd MirBSD Korn/Bourne shell .Nd MirBSD Korn/Bourne shell
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
@ -77,7 +77,7 @@ script use.
Its command language is a superset of the Its command language is a superset of the
.Xr sh C .Xr sh C
shell language and compatible to the original Korn shell. shell language and compatible to the original Korn shell.
.Nm mirbsdksh .Nm mksh
is derived from is derived from
.Nm pdksh , .Nm pdksh ,
the public domain Korn shell. the public domain Korn shell.
@ -260,7 +260,7 @@ parameter is not set (and not
.Dv NULL ) .Dv NULL )
and and
.Nm .Nm
was compiled with the was compiled with the non-default
.Dv DEFAULT_ENV .Dv DEFAULT_ENV
macro defined, the file named in that macro is included (after the above macro defined, the file named in that macro is included (after the above
mentioned substitutions have been performed). mentioned substitutions have been performed).
@ -1102,7 +1102,7 @@ where
is an arithmetic expression. is an arithmetic expression.
Array indices are currently limited to the range 0 through 4095 (for Array indices are currently limited to the range 0 through 4095 (for
.Nm mksh ) .Nm mksh )
or 1023 (for other korn shells), inclusive. or 0 to 1023 (for other korn shells), inclusive.
Parameter substitutions take the form Parameter substitutions take the form
.Ic $ Ns Ar name , .Ic $ Ns Ar name ,
.Ic ${ Ns Ar name Ns Ic \&} .Ic ${ Ns Ar name Ns Ic \&}
@ -1468,9 +1468,7 @@ parameters all point to the same file.
If If
.Ev HISTFILE .Ev HISTFILE
isn't set, no history file is used. isn't set, no history file is used.
This is different from the original Korn shell, which uses This is different from the original Korn shell.
.Pa $HOME/.sh_history
by default.
.It Ev HISTSIZE .It Ev HISTSIZE
The number of commands normally stored for history. The number of commands normally stored for history.
The default is 511. The default is 511.
@ -1495,13 +1493,9 @@ above for details.
This parameter is not imported from the environment when the shell is This parameter is not imported from the environment when the shell is
started. started.
.It Ev KSH_VERSION .It Ev KSH_VERSION
The version of the shell, consisting of the upstream The version of
.Nm pdksh .Nm
version (and sometimes date), the string (read-only).
.Dq MirOS
and the
.Xr rcs 1
revision number (read-only).
See also the version commands in See also the version commands in
.Sx Emacs editing mode .Sx Emacs editing mode
and and
@ -4573,8 +4567,7 @@ is appended.
If there is no command or file name with the current partial word If there is no command or file name with the current partial word
as its prefix, a bell character is output (usually causing a beep to be as its prefix, a bell character is output (usually causing a beep to be
sounded). sounded).
Currently being considered a bug in Currently being considered a bug,
.Nm ,
if the file name contains \fB[\fR or \fB]\fR, it cannot be completed, even if if the file name contains \fB[\fR or \fB]\fR, it cannot be completed, even if
the character is escaped, in \fBemacs\fR mode. the character is escaped, in \fBemacs\fR mode.
This surprisingly works in \fBvi\fR mode; please submit a fix. This surprisingly works in \fBvi\fR mode; please submit a fix.
@ -5287,7 +5280,7 @@ compliant shells is an issue.
.Pp .Pp
.Nm mksh .Nm mksh
is the name for the portable version of is the name for the portable version of
.Mx MirBSD .Mx
.Nm ksh .Nm ksh
installed as installed as
.Pa /bin/mksh .Pa /bin/mksh
@ -5297,26 +5290,9 @@ Visit
to obtain the latest version of to obtain the latest version of
.Nm mksh . .Nm mksh .
.Sh AUTHORS .Sh AUTHORS
This shell is based on the public domain 7th edition Bourne shell clone by
Charles Forsyth and parts of the BRL shell by Doug A. Gwyn, Doug Kingston,
Ron Natalie, Arnold Robbins, Lou Salkind, and others.
The first release of
.Nm pdksh
was created by Eric Gisin, and it was subsequently maintained by
.An John R. MacMillan Aq change!john@sq.sq.com
and
.An Simon J. Gerraty Aq sjg@zen.void.oz.au .
The current maintainer is
.An Michael Rendell Aq michael@cs.mun.ca
for the upstream version of
.Nm pdksh
and
.An Thorsten Glaser Aq tg@66h.42h.de
for
.Mx .
The The
.Pa CONTRIBUTORS .Pa CONTRIBUTORS
file in the source distribution contains a more complete list of people and file in the source distribution contains an almost complete list of people and
their part in the shell's development. their part in the shell's development.
.Sh BUGS .Sh BUGS
Send bug reports for Send bug reports for
@ -5335,8 +5311,7 @@ the machine, operating system, and compiler you are using and how you built
.Nm .Nm
(it is recommended to use the provided (it is recommended to use the provided
.Pa Build.sh .Pa Build.sh
mechanism if using mechanism)
.Nm mksh )
and a description of how to repeat the bug (a small shell script that and a description of how to repeat the bug (a small shell script that
demonstrates the bug is best). demonstrates the bug is best).
The following, if relevant (if you are not sure, include them), can also be The following, if relevant (if you are not sure, include them), can also be