drop long-deprecated 'set ±o arc4random'
This commit is contained in:
parent
463dc26db4
commit
6807ce3100
10
misc.c
10
misc.c
@ -29,7 +29,7 @@
|
|||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.167 2011/06/12 14:45:34 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.168 2011/06/12 15:37:08 tg Exp $");
|
||||||
|
|
||||||
/* type bits for unsigned char */
|
/* type bits for unsigned char */
|
||||||
unsigned char chtypes[UCHAR_MAX + 1];
|
unsigned char chtypes[UCHAR_MAX + 1];
|
||||||
@ -356,14 +356,6 @@ parse_args(const char **argv,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i = option(go.optarg);
|
i = option(go.optarg);
|
||||||
#ifndef MKSH_NO_DEPRECATED_WARNING
|
|
||||||
if ((enum sh_flag)i == FARC4RANDOM) {
|
|
||||||
warningf(true, "Do not use set ±o arc4random,"
|
|
||||||
" it will be removed in the next version"
|
|
||||||
" of mksh!");
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
if ((i != (size_t)-1) && set == Flag(i))
|
if ((i != (size_t)-1) && set == Flag(i))
|
||||||
/*
|
/*
|
||||||
* Don't check the context if the flag
|
* Don't check the context if the flag
|
||||||
|
7
mksh.1
7
mksh.1
@ -1,4 +1,4 @@
|
|||||||
.\" $MirOS: src/bin/mksh/mksh.1,v 1.263 2011/06/12 15:34:19 tg Exp $
|
.\" $MirOS: src/bin/mksh/mksh.1,v 1.264 2011/06/12 15:37:09 tg Exp $
|
||||||
.\" $OpenBSD: ksh.1,v 1.140 2011/04/23 10:14:59 sobrado Exp $
|
.\" $OpenBSD: ksh.1,v 1.140 2011/04/23 10:14:59 sobrado Exp $
|
||||||
.\"-
|
.\"-
|
||||||
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
|
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
|
||||||
@ -4044,11 +4044,6 @@ during file name generation.
|
|||||||
Print commands and parameter assignments when they are executed, preceded by
|
Print commands and parameter assignments when they are executed, preceded by
|
||||||
the value of
|
the value of
|
||||||
.Ev PS4 .
|
.Ev PS4 .
|
||||||
.It Ic arc4random
|
|
||||||
Deprecated, will be removed in
|
|
||||||
.Nm
|
|
||||||
R41.
|
|
||||||
Do not use, emits a warning to stderr.
|
|
||||||
.It Ic bgnice
|
.It Ic bgnice
|
||||||
Background jobs are run with lower priority.
|
Background jobs are run with lower priority.
|
||||||
.It Ic braceexpand
|
.It Ic braceexpand
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#if defined(SHFLAGS_DEFNS)
|
#if defined(SHFLAGS_DEFNS)
|
||||||
__RCSID("$MirOS: src/bin/mksh/sh_flags.h,v 1.8 2011/02/11 01:18:23 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/sh_flags.h,v 1.9 2011/06/12 15:37:10 tg Exp $");
|
||||||
#define FN(sname,cname,ochar,flags) /* nothing */
|
#define FN(sname,cname,ochar,flags) /* nothing */
|
||||||
#elif defined(SHFLAGS_ENUMS)
|
#elif defined(SHFLAGS_ENUMS)
|
||||||
#define FN(sname,cname,ochar,flags) cname,
|
#define FN(sname,cname,ochar,flags) cname,
|
||||||
@ -21,9 +21,6 @@ __RCSID("$MirOS: src/bin/mksh/sh_flags.h,v 1.8 2011/02/11 01:18:23 tg Exp $");
|
|||||||
/* -a all new parameters are created with the export attribute */
|
/* -a all new parameters are created with the export attribute */
|
||||||
F0("allexport", FEXPORT, 'a', OF_ANY)
|
F0("allexport", FEXPORT, 'a', OF_ANY)
|
||||||
|
|
||||||
/* ./. backwards compat: dummy, emits a warning */
|
|
||||||
FN("arc4random", FARC4RANDOM, 0, OF_ANY)
|
|
||||||
|
|
||||||
#if HAVE_NICE
|
#if HAVE_NICE
|
||||||
/* ./. bgnice */
|
/* ./. bgnice */
|
||||||
FN("bgnice", FBGNICE, 0, OF_ANY)
|
FN("bgnice", FBGNICE, 0, OF_ANY)
|
||||||
|
Loading…
Reference in New Issue
Block a user