fixes for stuff, better display of mksh version, etc.
This commit is contained in:
parent
e0474a6042
commit
78a5e1d662
4
Build.sh
4
Build.sh
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $MirBSD: Build.sh,v 1.12 2004/10/28 16:08:32 tg Exp $
|
# $MirBSD: Build.sh,v 1.13 2004/10/28 16:35:01 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2004
|
# Copyright (c) 2004
|
||||||
# Thorsten "mirabile" Glaser <x86@ePost.de>
|
# Thorsten "mirabile" Glaser <x86@ePost.de>
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
SHELL="${SHELL:-/bin/sh}"; export SHELL
|
SHELL="${SHELL:-/bin/sh}"; export SHELL
|
||||||
CONFIG_SHELL="${SHELL}"; export CONFIG_SHELL
|
CONFIG_SHELL="${SHELL}"; export CONFIG_SHELL
|
||||||
CC="${CC:-gcc}"
|
CC="${CC:-gcc}"
|
||||||
CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H -I. -DKSH"
|
CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H -I. -DKSH -DMKSH"
|
||||||
COPTS="-O2 -fomit-frame-pointer -fno-strict-aliasing -fno-strength-reduce"
|
COPTS="-O2 -fomit-frame-pointer -fno-strict-aliasing -fno-strength-reduce"
|
||||||
[ -z "$WEIRD_OS" ] && LDFLAGS="${LDFLAGS:--static}"
|
[ -z "$WEIRD_OS" ] && LDFLAGS="${LDFLAGS:--static}"
|
||||||
|
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -1,4 +1,4 @@
|
||||||
# $MirBSD: Makefile,v 1.7 2004/10/28 11:03:21 tg Exp $
|
# $MirBSD: Makefile,v 1.8 2004/10/28 16:35:01 tg Exp $
|
||||||
# $OpenBSD: Makefile,v 1.18 2004/02/16 19:07:19 deraadt Exp $
|
# $OpenBSD: Makefile,v 1.18 2004/02/16 19:07:19 deraadt Exp $
|
||||||
|
|
||||||
PROG= ksh
|
PROG= ksh
|
||||||
|
@ -8,7 +8,7 @@ SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
|
||||||
trap.c tree.c tty.c var.c version.c vi.c
|
trap.c tree.c tty.c var.c version.c vi.c
|
||||||
MAN= ksh.1tbl sh.1tbl
|
MAN= ksh.1tbl sh.1tbl
|
||||||
|
|
||||||
CPPFLAGS+= -DHAVE_CONFIG_H -I. -DKSH
|
CPPFLAGS+= -DHAVE_CONFIG_H -I. -DKSH -DMIRBSD_NATIVE
|
||||||
CFLAGS+= -Wall -Werror -W -pedantic
|
CFLAGS+= -Wall -Werror -W -pedantic
|
||||||
CLEANFILES+= siglist.out emacs.out
|
CLEANFILES+= siglist.out emacs.out
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/** $MirBSD: conf-end.h,v 1.8 2004/10/28 11:53:40 tg Exp $ */
|
/** $MirBSD: conf-end.h,v 1.9 2004/10/28 16:35:01 tg Exp $ */
|
||||||
/* $OpenBSD: conf-end.h,v 1.2 1996/08/25 12:37:58 downsj Exp $ */
|
/* $OpenBSD: conf-end.h,v 1.2 1996/08/25 12:37:58 downsj Exp $ */
|
||||||
|
|
||||||
#ifndef CONF_END_H
|
#ifndef CONF_END_H
|
||||||
|
@ -26,7 +26,11 @@
|
||||||
#define COMPLEX_HISTORY
|
#define COMPLEX_HISTORY
|
||||||
|
|
||||||
/* Strict POSIX behaviour? */
|
/* Strict POSIX behaviour? */
|
||||||
|
#ifdef KSH
|
||||||
#undef POSIXLY_CORRECT
|
#undef POSIXLY_CORRECT
|
||||||
|
#else
|
||||||
|
#define POSIXLY_CORRECT 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Specify default $ENV? */
|
/* Specify default $ENV? */
|
||||||
/* #undef DEFAULT_ENV */
|
/* #undef DEFAULT_ENV */
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated automatically using autoconf version 2.13.20040919
|
# Generated automatically using autoconf version 2.13.20040919
|
||||||
# $MirBSD: configure,v 1.12 2004/10/28 11:53:40 tg Exp $
|
# $MirBSD: configure,v 1.13 2004/10/28 16:35:01 tg Exp $
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 2004
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 2004
|
||||||
# Free Software Foundation, Inc.
|
# Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
|
@ -4356,8 +4356,17 @@ cat >> $CONFIG_STATUS <<\EOF
|
||||||
fi
|
fi
|
||||||
fi; done
|
fi; done
|
||||||
|
|
||||||
|
EOF
|
||||||
|
cat >> $CONFIG_STATUS <<EOF
|
||||||
|
# Extra initialization commands, if any
|
||||||
|
|
||||||
|
EOF
|
||||||
|
cat >> $CONFIG_STATUS <<\EOF
|
||||||
|
# Extra commands, if any
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
EOF
|
EOF
|
||||||
chmod +x $CONFIG_STATUS
|
chmod +x $CONFIG_STATUS
|
||||||
rm -fr confdefs* $ac_clean_files
|
rm -fr confdefs* $ac_clean_files
|
||||||
test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
|
test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
|
||||||
|
|
||||||
|
|
15
ksh.1tbl
15
ksh.1tbl
|
@ -1,4 +1,4 @@
|
||||||
.\" $MirBSD: ksh.1tbl,v 1.32 2004/10/28 16:19:01 tg Exp $
|
.\" $MirBSD: ksh.1tbl,v 1.33 2004/10/28 16:35:02 tg Exp $
|
||||||
.\" $OpenBSD: ksh.1tbl,v 1.72 2004/08/07 16:46:58 millert Exp $
|
.\" $OpenBSD: ksh.1tbl,v 1.72 2004/08/07 16:46:58 millert Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1980, 1990, 1993
|
.\" Copyright (c) 1980, 1990, 1993
|
||||||
|
@ -32,6 +32,9 @@
|
||||||
.\"
|
.\"
|
||||||
.\" @(#)ksh.1tbl 8.2 (Berkeley) 8/19/96
|
.\" @(#)ksh.1tbl 8.2 (Berkeley) 8/19/96
|
||||||
.\"
|
.\"
|
||||||
|
.Dd April 7, 2004
|
||||||
|
.Dt KSH 1
|
||||||
|
.Os MirOS
|
||||||
.\" define Mx macro for portable mksh
|
.\" define Mx macro for portable mksh
|
||||||
.de Mx
|
.de Mx
|
||||||
.nr cF \\n(.f
|
.nr cF \\n(.f
|
||||||
|
@ -46,12 +49,9 @@
|
||||||
. if "\\$1"," \&MirOS\\$1\\*(aa
|
. if "\\$1"," \&MirOS\\$1\\*(aa
|
||||||
.\}
|
.\}
|
||||||
..
|
..
|
||||||
.Dd April 7, 2004
|
|
||||||
.Dt KSH 1
|
|
||||||
.Os
|
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm ksh
|
.Nm ksh
|
||||||
.Nd MirOS Korn shell (derived from pdksh)
|
.Nd MirBSD Korn shell (derived from pdksh)
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl +abCefhiklmnprsuvxX
|
.Op Fl +abCefhiklmnprsuvxX
|
||||||
|
@ -5231,7 +5231,7 @@ extensions exposed, caution should be used where backwards compatibility with
|
||||||
traditional Bourne or
|
traditional Bourne or
|
||||||
.Tn POSIX
|
.Tn POSIX
|
||||||
compliant shells is an issue.
|
compliant shells is an issue.
|
||||||
.pp
|
.Pp
|
||||||
.Nm mksh
|
.Nm mksh
|
||||||
is the common name for the
|
is the common name for the
|
||||||
.Mx
|
.Mx
|
||||||
|
@ -5239,7 +5239,8 @@ Korn shell installed in
|
||||||
.Pa /bin/mksh
|
.Pa /bin/mksh
|
||||||
or
|
or
|
||||||
.Pa /usr/local/bin/mksh
|
.Pa /usr/local/bin/mksh
|
||||||
on foreign systems, installed from the portable mirbsdksh sources.
|
on foreign systems, installed from the portable mirbsdksh sources at
|
||||||
|
.Pa http://wiki.mirbsd.de/MirbsdKsh .
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
This shell is based on the public domain 7th edition Bourne shell clone by
|
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,
|
Charles Forsyth and parts of the BRL shell by Doug A. Gwyn, Doug Kingston,
|
||||||
|
|
37
version.c
37
version.c
|
@ -1,11 +1,42 @@
|
||||||
/** $MirBSD: version.c,v 1.14 2004/10/28 11:46:54 tg Exp $ */
|
/** $MirBSD: version.c,v 1.15 2004/10/28 16:35:03 tg Exp $ */
|
||||||
/* $OpenBSD: version.c,v 1.12 1999/07/14 13:37:24 millert Exp $ */
|
/* $OpenBSD: version.c,v 1.12 1999/07/14 13:37:24 millert Exp $ */
|
||||||
|
|
||||||
/*
|
/*-
|
||||||
|
* Copyright (c) 2004
|
||||||
|
* Thorsten "mirabile" Glaser <tg@66h.42h.de>
|
||||||
|
*
|
||||||
|
* Licensee is hereby permitted to deal in this work without restric-
|
||||||
|
* tion, including unlimited rights to use, publically perform, modi-
|
||||||
|
* fy, merge, distribute, sell, give away or sublicence, provided the
|
||||||
|
* above copyright notices, these terms and the disclaimer are retai-
|
||||||
|
* ned in all redistributions, or reproduced in accompanying documen-
|
||||||
|
* tation or other materials provided with binary redistributions.
|
||||||
|
*
|
||||||
|
* Licensor hereby provides this work "AS IS" and WITHOUT WARRANTY of
|
||||||
|
* any kind, expressed or implied, to the maximum extent permitted by
|
||||||
|
* applicable law, but with the warranty of being written without ma-
|
||||||
|
* licious intent or gross negligence; in no event shall licensor, an
|
||||||
|
* author or contributor be held liable for any damage, direct, indi-
|
||||||
|
* rect or other, however caused, arising in any way out of the usage
|
||||||
|
* of covered work, even if advised of the possibility of such damage.
|
||||||
|
*-
|
||||||
* value of $KSH_VERSION (or $SH_VERSION)
|
* value of $KSH_VERSION (or $SH_VERSION)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
const char ksh_version[] =
|
const char ksh_version[] =
|
||||||
"@(#)PD KSH v5.2.14 99/07/13.2 MirOS $Revision: 1.14 $";
|
"@(#)PD KSH v5.2.14 MirOS $Revision: 1.15 $ in "
|
||||||
|
#ifdef MIRBSD_NATIVE
|
||||||
|
"native "
|
||||||
|
#endif
|
||||||
|
#ifdef KSH
|
||||||
|
"KSH"
|
||||||
|
#else
|
||||||
|
"POSIX"
|
||||||
|
#endif
|
||||||
|
" mode"
|
||||||
|
#ifdef MKSH
|
||||||
|
" as mksh"
|
||||||
|
#endif
|
||||||
|
;
|
||||||
|
|
Loading…
Reference in New Issue