make this R29(beta), mksh -U turn on (or setlocale), and document.
This commit is contained in:
parent
abe860d486
commit
5e2e209d51
4
check.t
4
check.t
@ -1,4 +1,4 @@
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.68 2006/11/05 12:11:13 tg Exp $
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.69 2006/11/05 17:01:46 tg Exp $
|
||||
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
|
||||
@ -3872,5 +3872,5 @@ category: pdksh
|
||||
stdin:
|
||||
echo $KSH_VERSION
|
||||
expected-stdout:
|
||||
@(#)MIRBSD KSH R28 2006/11/05
|
||||
@(#)MIRBSD KSH R29 2006/11/05
|
||||
---
|
||||
|
4
misc.c
4
misc.c
@ -3,7 +3,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.17 2006/11/05 12:11:14 tg Exp $\t"
|
||||
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.18 2006/11/05 17:01:46 tg Exp $\t"
|
||||
MKSH_SH_H_ID);
|
||||
|
||||
short chtypes[UCHAR_MAX+1]; /* type bits for unsigned char */
|
||||
@ -142,7 +142,7 @@ const struct option options[] = {
|
||||
{ "sh", 0, OF_ANY }, /* non-standard */
|
||||
{ "stdin", 's', OF_CMDLINE }, /* pseudo non-standard */
|
||||
{ "trackall", 'h', OF_ANY },
|
||||
{ "utf8-hack", 0, OF_ANY }, /* non-standard */
|
||||
{ "utf8-hack", 'U', OF_ANY }, /* non-standard */
|
||||
{ "verbose", 'v', OF_ANY },
|
||||
{ "vi", 0, OF_ANY },
|
||||
{ "viraw", 0, OF_ANY }, /* no effect */
|
||||
|
17
mksh.1
17
mksh.1
@ -1,4 +1,4 @@
|
||||
.\" $MirOS: src/bin/mksh/mksh.1,v 1.59 2006/09/13 16:14:29 tg Exp $
|
||||
.\" $MirOS: src/bin/mksh/mksh.1,v 1.60 2006/11/05 17:01:46 tg Exp $
|
||||
.\" $OpenBSD: ksh.1,v 1.116 2006/07/26 10:13:25 jmc Exp $
|
||||
.\"
|
||||
.Dd September 13, 2006
|
||||
@ -11,7 +11,7 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Bk -words
|
||||
.Op Fl +abCefhiklmnpruvXx
|
||||
.Op Fl +abCefhiklmnprUuvXx
|
||||
.Op Fl T Ar /dev/ttyCn
|
||||
.Op Fl +o Ar option
|
||||
.Oo Fl c Ar string \*(Ba Fl s \*(Ba
|
||||
@ -3265,6 +3265,19 @@ the positional parameters (or to array
|
||||
if
|
||||
.Fl A
|
||||
is used).
|
||||
.It Fl U \(*Ba Ic utf8-hack
|
||||
Enable an experimental UTF-8 hack for the
|
||||
.Sx Emacs editing mode .
|
||||
This is enabled automatically if your system supports these two calls and
|
||||
.Fn setlocale LC_CTYPE \&""
|
||||
or an afterwards
|
||||
.Fn nl_langinfo CODESET
|
||||
return something that matches to
|
||||
.Dq UTF-8 ,
|
||||
.Dq utf8 ,
|
||||
.Dq CESU-8 ,
|
||||
or
|
||||
.Dq cesu8 .
|
||||
.It Fl u \*(Ba Ic nounset
|
||||
Referencing of an unset parameter is treated as an error, unless one of the
|
||||
.Ql - ,
|
||||
|
6
sh.h
6
sh.h
@ -8,8 +8,8 @@
|
||||
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
|
||||
/* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */
|
||||
|
||||
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.49 2006/11/05 15:31:37 tg Exp $"
|
||||
#define MKSH_VERSION "R28 2006/11/05"
|
||||
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.50 2006/11/05 17:01:47 tg Exp $"
|
||||
#define MKSH_VERSION "R29 2006/11/05"
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#if !defined(__RCSID) || !defined(__SCCSID)
|
||||
@ -283,7 +283,7 @@ enum sh_flag {
|
||||
FSH, /* -o sh (dummy, for pdksh compatibility) */
|
||||
FSTDIN, /* -s: (invocation) parse stdin */
|
||||
FTRACKALL, /* -h: create tracked aliases for all commands */
|
||||
FUTFHACK, /* utf-8 hack for command line editing */
|
||||
FUTFHACK, /* -U: utf-8 hack for command line editing */
|
||||
FVERBOSE, /* -v: echo input */
|
||||
FVI, /* vi command editing */
|
||||
FVIRAW, /* always read in raw mode (ignored) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user