finish un-OS/2-ing and un-pdksh a bit
This commit is contained in:
parent
c34add61ff
commit
27aff60a34
9
emacs.c
9
emacs.c
@ -1,4 +1,4 @@
|
|||||||
/** $MirBSD: src/bin/ksh/emacs.c,v 2.2 2004/12/13 19:05:09 tg Exp $ */
|
/** $MirBSD: src/bin/ksh/emacs.c,v 2.3 2004/12/13 19:09:06 tg Exp $ */
|
||||||
/* $OpenBSD: emacs.c,v 1.28 2003/10/22 07:40:38 jmc Exp $ */
|
/* $OpenBSD: emacs.c,v 1.28 2003/10/22 07:40:38 jmc Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -19,7 +19,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include "edit.h"
|
#include "edit.h"
|
||||||
|
|
||||||
__RCSID("$MirBSD: src/bin/ksh/emacs.c,v 2.2 2004/12/13 19:05:09 tg Exp $");
|
__RCSID("$MirBSD: src/bin/ksh/emacs.c,v 2.3 2004/12/13 19:09:06 tg Exp $");
|
||||||
|
|
||||||
static Area aedit;
|
static Area aedit;
|
||||||
#define AEDIT &aedit /* area for kill ring and macro defns */
|
#define AEDIT &aedit /* area for kill ring and macro defns */
|
||||||
@ -216,11 +216,6 @@ static const struct x_ftab x_ftab[] = {
|
|||||||
#else
|
#else
|
||||||
{ 0, 0, 0 },
|
{ 0, 0, 0 },
|
||||||
#endif
|
#endif
|
||||||
#ifdef OS2
|
|
||||||
{ x_meta3, "prefix-3", XF_PREFIX },
|
|
||||||
#else
|
|
||||||
{ 0, 0, 0 },
|
|
||||||
#endif
|
|
||||||
/* @END-FUNC-TAB@ */
|
/* @END-FUNC-TAB@ */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/** $MirBSD: src/bin/ksh/history.c,v 2.2 2004/12/13 19:05:09 tg Exp $ */
|
/** $MirBSD: src/bin/ksh/history.c,v 2.3 2004/12/13 19:09:06 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,13 +21,13 @@
|
|||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
#include "ksh_stat.h"
|
#include "ksh_stat.h"
|
||||||
|
|
||||||
__RCSID("$MirBSD: src/bin/ksh/history.c,v 2.2 2004/12/13 19:05:09 tg Exp $");
|
__RCSID("$MirBSD: src/bin/ksh/history.c,v 2.3 2004/12/13 19:09:06 tg Exp $");
|
||||||
|
|
||||||
#ifdef HISTORY
|
#ifdef HISTORY
|
||||||
# ifdef EASY_HISTORY
|
# ifdef EASY_HISTORY
|
||||||
|
|
||||||
# ifndef HISTFILE
|
# ifndef HISTFILE
|
||||||
# define HISTFILE ".pdksh_history"
|
# define HISTFILE ".mksh_history"
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# else
|
# else
|
||||||
|
27
ksh.1tbl
27
ksh.1tbl
@ -1,4 +1,4 @@
|
|||||||
.\" $MirBSD: src/bin/ksh/ksh.1tbl,v 2.2 2004/12/13 18:24:33 tg Exp $
|
.\" $MirBSD: src/bin/ksh/ksh.1tbl,v 2.3 2004/12/13 19:09:06 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 $
|
||||||
.\"
|
.\"
|
||||||
@ -176,7 +176,7 @@ parameter match the pattern
|
|||||||
.Dq \&*r\&*sh
|
.Dq \&*r\&*sh
|
||||||
(e.g.,
|
(e.g.,
|
||||||
.Dq rsh ,
|
.Dq rsh ,
|
||||||
.Dq rksh ,
|
.Dq rmksh ,
|
||||||
.Dq rpdksh ,
|
.Dq rpdksh ,
|
||||||
etc.).
|
etc.).
|
||||||
The following restrictions come into effect after the shell processes any
|
The following restrictions come into effect after the shell processes any
|
||||||
@ -259,7 +259,7 @@ If the
|
|||||||
parameter is not set (and not
|
parameter is not set (and not
|
||||||
.Dv NULL )
|
.Dv NULL )
|
||||||
and
|
and
|
||||||
.Nm pdksh
|
.Nm
|
||||||
was compiled with the
|
was compiled with the
|
||||||
.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
|
||||||
@ -1102,9 +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
|
or 1023 (for other korn shells), inclusive.
|
||||||
.Nm pdksh ) ,
|
|
||||||
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 \&}
|
||||||
@ -1862,7 +1860,7 @@ matches all strings (think about it).
|
|||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Note that
|
Note that
|
||||||
.Nm pdksh
|
.Nm
|
||||||
currently never matches
|
currently never matches
|
||||||
.Dq \&.
|
.Dq \&.
|
||||||
and
|
and
|
||||||
@ -1874,11 +1872,6 @@ Bourne
|
|||||||
and GNU
|
and GNU
|
||||||
.Xr bash
|
.Xr bash
|
||||||
do.
|
do.
|
||||||
For
|
|
||||||
.Nm pdksh ,
|
|
||||||
this may have to change (too bad), but
|
|
||||||
.Nm mksh
|
|
||||||
will not adopt this behaviour.
|
|
||||||
.Pp
|
.Pp
|
||||||
Note that none of the above pattern elements match either a period
|
Note that none of the above pattern elements match either a period
|
||||||
.Pq Sq \&.
|
.Pq Sq \&.
|
||||||
@ -3318,7 +3311,7 @@ If used outside of a function or
|
|||||||
script, it has the same effect as
|
script, it has the same effect as
|
||||||
.Ic exit .
|
.Ic exit .
|
||||||
Note that
|
Note that
|
||||||
.Nm pdksh
|
.Nm
|
||||||
treats both profile and
|
treats both profile and
|
||||||
.Ev ENV
|
.Ev ENV
|
||||||
files as
|
files as
|
||||||
@ -3536,7 +3529,7 @@ was set, the vi command-line mode would let the
|
|||||||
driver do the work until
|
driver do the work until
|
||||||
.Tn ESC
|
.Tn ESC
|
||||||
(^[) was entered.
|
(^[) was entered.
|
||||||
.Nm pdksh
|
.Nm
|
||||||
is always in viraw mode.
|
is always in viraw mode.
|
||||||
.It Ic vi-esccomplete
|
.It Ic vi-esccomplete
|
||||||
In vi command-line editing, do command and file name completion when escape
|
In vi command-line editing, do command and file name completion when escape
|
||||||
@ -4964,8 +4957,8 @@ Command/file name enumeration.
|
|||||||
List all the commands or files that match the current big-word.
|
List all the commands or files that match the current big-word.
|
||||||
.It Ic ^V
|
.It Ic ^V
|
||||||
Display the version of
|
Display the version of
|
||||||
.Nm pdksh ;
|
.Nm
|
||||||
it is displayed until another key is pressed (this key is ignored).
|
until another key is pressed (this key is ignored).
|
||||||
.It Ic @ Ns Ar c
|
.It Ic @ Ns Ar c
|
||||||
Macro expansion.
|
Macro expansion.
|
||||||
Execute the commands found in the alias
|
Execute the commands found in the alias
|
||||||
@ -5280,7 +5273,7 @@ domain Korn shell, as delivered with
|
|||||||
.Sh NOTES
|
.Sh NOTES
|
||||||
.Nm sh
|
.Nm sh
|
||||||
is implemented as a run-time option of
|
is implemented as a run-time option of
|
||||||
.Nm pdksh ,
|
.Nm mksh ,
|
||||||
with only those
|
with only those
|
||||||
.Nm ksh
|
.Nm ksh
|
||||||
features whose syntax or semantics are incompatible with a traditional Bourne
|
features whose syntax or semantics are incompatible with a traditional Bourne
|
||||||
|
6
main.c
6
main.c
@ -1,4 +1,4 @@
|
|||||||
/** $MirBSD: src/bin/ksh/main.c,v 2.4 2004/12/13 19:05:09 tg Exp $ */
|
/** $MirBSD: src/bin/ksh/main.c,v 2.5 2004/12/13 19:09:06 tg Exp $ */
|
||||||
/* $OpenBSD: main.c,v 1.28 2004/08/23 14:56:32 millert Exp $ */
|
/* $OpenBSD: main.c,v 1.28 2004/08/23 14:56:32 millert Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -15,7 +15,7 @@
|
|||||||
* shell version
|
* shell version
|
||||||
*/
|
*/
|
||||||
|
|
||||||
__RCSID("$MirBSD: src/bin/ksh/main.c,v 2.4 2004/12/13 19:05:09 tg Exp $");
|
__RCSID("$MirBSD: src/bin/ksh/main.c,v 2.5 2004/12/13 19:09:06 tg Exp $");
|
||||||
|
|
||||||
static const char version_param[] =
|
static const char version_param[] =
|
||||||
#ifdef KSH
|
#ifdef KSH
|
||||||
@ -122,7 +122,7 @@ main(int argc, char *argv[])
|
|||||||
/* make sure argv[] is sane */
|
/* make sure argv[] is sane */
|
||||||
if (!*argv) {
|
if (!*argv) {
|
||||||
static const char *empty_argv[] = {
|
static const char *empty_argv[] = {
|
||||||
"pdksh", (char *) 0
|
"mksh", (char *) 0
|
||||||
};
|
};
|
||||||
|
|
||||||
argv = (char **) empty_argv;
|
argv = (char **) empty_argv;
|
||||||
|
6
syn.c
6
syn.c
@ -1,4 +1,4 @@
|
|||||||
/** $MirBSD: src/bin/ksh/syn.c,v 2.1 2004/12/10 18:09:42 tg Exp $ */
|
/** $MirBSD: src/bin/ksh/syn.c,v 2.2 2004/12/13 19:09:06 tg Exp $ */
|
||||||
/* $OpenBSD: syn.c,v 1.14 2003/10/22 07:40:38 jmc Exp $ */
|
/* $OpenBSD: syn.c,v 1.14 2003/10/22 07:40:38 jmc Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -8,7 +8,7 @@
|
|||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
#include "c_test.h"
|
#include "c_test.h"
|
||||||
|
|
||||||
__RCSID("$MirBSD: src/bin/ksh/syn.c,v 2.1 2004/12/10 18:09:42 tg Exp $");
|
__RCSID("$MirBSD: src/bin/ksh/syn.c,v 2.2 2004/12/13 19:09:06 tg Exp $");
|
||||||
|
|
||||||
struct nesting_state {
|
struct nesting_state {
|
||||||
int start_token; /* token than began nesting (eg, FOR) */
|
int start_token; /* token than began nesting (eg, FOR) */
|
||||||
@ -537,7 +537,7 @@ function_body(char *name, int ksh_func)
|
|||||||
|
|
||||||
sname = wdstrip(name);
|
sname = wdstrip(name);
|
||||||
/* Check for valid characters in name. posix and ksh93 say only
|
/* Check for valid characters in name. posix and ksh93 say only
|
||||||
* allow [a-zA-Z_0-9] but this allows more as old pdksh's have
|
* allow [a-zA-Z_0-9] but this allows more as old pdkshs have
|
||||||
* allowed more (the following were never allowed:
|
* allowed more (the following were never allowed:
|
||||||
* nul space nl tab $ ' " \ ` ( ) & | ; = < >
|
* nul space nl tab $ ' " \ ` ( ) & | ; = < >
|
||||||
* C_QUOTE covers all but = and adds # [ ? *)
|
* C_QUOTE covers all but = and adds # [ ? *)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user