sync… various things
This commit is contained in:
parent
8c46637835
commit
e39dea490f
23
Makefile
23
Makefile
@ -1,4 +1,4 @@
|
|||||||
# $MirOS: src/bin/mksh/Makefile,v 1.86 2011/02/11 01:18:14 tg Exp $
|
# $MirOS: src/bin/mksh/Makefile,v 1.87 2011/04/09 18:47:12 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
|
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
|
||||||
# Thorsten Glaser <tg@mirbsd.org>
|
# Thorsten Glaser <tg@mirbsd.org>
|
||||||
@ -31,17 +31,16 @@ CPPFLAGS+= -DMKSH_ASSUME_UTF8 \
|
|||||||
-DHAVE_ATTRIBUTE_NONNULL=1 -DHAVE_ATTRIBUTE_NORETURN=1 \
|
-DHAVE_ATTRIBUTE_NONNULL=1 -DHAVE_ATTRIBUTE_NORETURN=1 \
|
||||||
-DHAVE_ATTRIBUTE_UNUSED=1 -DHAVE_ATTRIBUTE_USED=1 \
|
-DHAVE_ATTRIBUTE_UNUSED=1 -DHAVE_ATTRIBUTE_USED=1 \
|
||||||
-DHAVE_SYS_BSDTYPES_H=0 -DHAVE_SYS_FILE_H=1 \
|
-DHAVE_SYS_BSDTYPES_H=0 -DHAVE_SYS_FILE_H=1 \
|
||||||
-DHAVE_SYS_MKDEV_H=0 -DHAVE_SYS_MMAN_H=1 \
|
-DHAVE_SYS_MKDEV_H=0 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_PARAM_H=1 \
|
||||||
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 \
|
-DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SYSMACROS_H=0 \
|
||||||
-DHAVE_SYS_SYSMACROS_H=0 -DHAVE_BSTRING_H=0 -DHAVE_GRP_H=1 \
|
-DHAVE_BSTRING_H=0 -DHAVE_GRP_H=1 -DHAVE_LIBGEN_H=1 \
|
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ELECT=1 -DHAVE_SETRESUGID=1 -DHAVE_SETGROUPS=1 \
|
||||||
-DHAVE_STRCASESTR=1 -DHAVE_STRLCPY=1 -DHAVE_FLOCK_DECL=1 \
|
-DHAVE_STRCASESTR=1 -DHAVE_STRLCPY=1 -DHAVE_FLOCK_DECL=1 \
|
||||||
|
13
check.t
13
check.t
@ -1,4 +1,4 @@
|
|||||||
# $MirOS: src/bin/mksh/check.t,v 1.444 2011/04/09 15:39:50 tg Exp $
|
# $MirOS: src/bin/mksh/check.t,v 1.445 2011/04/09 18:47:12 tg Exp $
|
||||||
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas 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: 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 $
|
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
|
||||||
@ -25,7 +25,7 @@
|
|||||||
# http://www.research.att.com/~gsf/public/ifs.sh
|
# http://www.research.att.com/~gsf/public/ifs.sh
|
||||||
|
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
@(#)MIRBSD KSH R39 2011/04/01
|
@(#)MIRBSD KSH R39 2011/04/09
|
||||||
description:
|
description:
|
||||||
Check version of shell.
|
Check version of shell.
|
||||||
stdin:
|
stdin:
|
||||||
@ -7212,21 +7212,22 @@ stdin:
|
|||||||
name: fd-cloexec-1
|
name: fd-cloexec-1
|
||||||
description:
|
description:
|
||||||
Verify that file descriptors > 2 are private for Korn shells
|
Verify that file descriptors > 2 are private for Korn shells
|
||||||
|
AT&T ksh93 does this still, which means we must keep it as well
|
||||||
file-setup: file 644 "test.sh"
|
file-setup: file 644 "test.sh"
|
||||||
print -u3 Fowl
|
echo >&3 Fowl
|
||||||
stdin:
|
stdin:
|
||||||
exec 3>&1
|
exec 3>&1
|
||||||
"$__progname" test.sh
|
"$__progname" test.sh
|
||||||
expected-exit: e != 0
|
expected-exit: e != 0
|
||||||
expected-stderr:
|
expected-stderr-pattern:
|
||||||
test.sh[1]: print: -u: 3: bad file descriptor
|
/bad file descriptor/
|
||||||
---
|
---
|
||||||
name: fd-cloexec-2
|
name: fd-cloexec-2
|
||||||
description:
|
description:
|
||||||
Verify that file descriptors > 2 are not private for POSIX shells
|
Verify that file descriptors > 2 are not private for POSIX shells
|
||||||
See Debian Bug #154540, Closes: #499139
|
See Debian Bug #154540, Closes: #499139
|
||||||
file-setup: file 644 "test.sh"
|
file-setup: file 644 "test.sh"
|
||||||
print -u3 Fowl
|
echo >&3 Fowl
|
||||||
stdin:
|
stdin:
|
||||||
test -n "$POSH_VERSION" || set -o sh
|
test -n "$POSH_VERSION" || set -o sh
|
||||||
exec 3>&1
|
exec 3>&1
|
||||||
|
4
sh.h
4
sh.h
@ -151,9 +151,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef EXTERN
|
#ifdef EXTERN
|
||||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.460 2011/04/09 15:14:53 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.461 2011/04/09 18:47:14 tg Exp $");
|
||||||
#endif
|
#endif
|
||||||
#define MKSH_VERSION "R39 2011/04/01"
|
#define MKSH_VERSION "R39 2011/04/09"
|
||||||
|
|
||||||
#ifndef MKSH_INCLUDES_ONLY
|
#ifndef MKSH_INCLUDES_ONLY
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user