fix using “-m” on the command line; spotted by G.raud <graud@gmx.com> on ML
This commit is contained in:
6
check.t
6
check.t
@ -1,4 +1,4 @@
|
|||||||
# $MirOS: src/bin/mksh/check.t,v 1.804 2018/05/07 00:07:18 tg Exp $
|
# $MirOS: src/bin/mksh/check.t,v 1.805 2018/05/08 17:37:33 tg Exp $
|
||||||
# -*- mode: sh -*-
|
# -*- mode: sh -*-
|
||||||
#-
|
#-
|
||||||
# Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
# Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||||
@ -30,7 +30,7 @@
|
|||||||
# (2013/12/02 20:39:44) http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/regress/bin/ksh/?sortby=date
|
# (2013/12/02 20:39:44) http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/regress/bin/ksh/?sortby=date
|
||||||
|
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
@(#)MIRBSD KSH R56 2018/05/07
|
@(#)MIRBSD KSH R56 2018/05/08
|
||||||
description:
|
description:
|
||||||
Check base version of full shell
|
Check base version of full shell
|
||||||
stdin:
|
stdin:
|
||||||
@ -39,7 +39,7 @@ name: KSH_VERSION
|
|||||||
category: !shell:legacy-yes
|
category: !shell:legacy-yes
|
||||||
---
|
---
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
@(#)LEGACY KSH R56 2018/05/07
|
@(#)LEGACY KSH R56 2018/05/08
|
||||||
description:
|
description:
|
||||||
Check base version of legacy shell
|
Check base version of legacy shell
|
||||||
stdin:
|
stdin:
|
||||||
|
12
jobs.c
12
jobs.c
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.125 2018/01/05 20:08:34 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.126 2018/05/08 17:37:35 tg Exp $");
|
||||||
|
|
||||||
#if HAVE_KILLPG
|
#if HAVE_KILLPG
|
||||||
#define mksh_killpg killpg
|
#define mksh_killpg killpg
|
||||||
@ -169,12 +169,6 @@ static void tty_init_state(void);
|
|||||||
void
|
void
|
||||||
j_init(void)
|
j_init(void)
|
||||||
{
|
{
|
||||||
#ifndef MKSH_UNEMPLOYED
|
|
||||||
bool mflagset = Flag(FMONITOR) != 127;
|
|
||||||
|
|
||||||
Flag(FMONITOR) = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef MKSH_NOPROSPECTOFWORK
|
#ifndef MKSH_NOPROSPECTOFWORK
|
||||||
(void)sigemptyset(&sm_default);
|
(void)sigemptyset(&sm_default);
|
||||||
sigprocmask(SIG_SETMASK, &sm_default, NULL);
|
sigprocmask(SIG_SETMASK, &sm_default, NULL);
|
||||||
@ -190,8 +184,8 @@ j_init(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MKSH_UNEMPLOYED
|
#ifndef MKSH_UNEMPLOYED
|
||||||
if (!mflagset && Flag(FTALKING))
|
if (Flag(FMONITOR) == 127)
|
||||||
Flag(FMONITOR) = 1;
|
Flag(FMONITOR) = Flag(FTALKING);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* shl_j is used to do asynchronous notification (used in
|
* shl_j is used to do asynchronous notification (used in
|
||||||
|
4
main.c
4
main.c
@ -34,7 +34,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.348 2018/04/27 16:54:45 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.349 2018/05/08 17:37:36 tg Exp $");
|
||||||
|
|
||||||
#ifndef MKSHRC_PATH
|
#ifndef MKSHRC_PATH
|
||||||
#define MKSHRC_PATH "~/.mkshrc"
|
#define MKSHRC_PATH "~/.mkshrc"
|
||||||
@ -457,7 +457,7 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
|
|||||||
/* Set this before parsing arguments */
|
/* Set this before parsing arguments */
|
||||||
Flag(FPRIVILEGED) = (kshuid != ksheuid || kshgid != kshegid) ? 2 : 0;
|
Flag(FPRIVILEGED) = (kshuid != ksheuid || kshgid != kshegid) ? 2 : 0;
|
||||||
|
|
||||||
/* this to note if monitor is set on command line (see below) */
|
/* record if monitor is set on command line (see j_init() in jobs.c) */
|
||||||
#ifndef MKSH_UNEMPLOYED
|
#ifndef MKSH_UNEMPLOYED
|
||||||
Flag(FMONITOR) = 127;
|
Flag(FMONITOR) = 127;
|
||||||
#endif
|
#endif
|
||||||
|
4
sh.h
4
sh.h
@ -182,9 +182,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef EXTERN
|
#ifdef EXTERN
|
||||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.861 2018/05/07 00:07:21 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.862 2018/05/08 17:37:37 tg Exp $");
|
||||||
#endif
|
#endif
|
||||||
#define MKSH_VERSION "R56 2018/05/07"
|
#define MKSH_VERSION "R56 2018/05/08"
|
||||||
|
|
||||||
/* arithmetic types: C implementation */
|
/* arithmetic types: C implementation */
|
||||||
#if !HAVE_CAN_INTTYPES
|
#if !HAVE_CAN_INTTYPES
|
||||||
|
Reference in New Issue
Block a user