add testcases, bump vsn

This commit is contained in:
tg 2011-03-28 08:40:42 +00:00
parent e19d8612ad
commit 19e128c4e1
2 changed files with 33 additions and 4 deletions

33
check.t
View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.438 2011/03/27 18:50:02 tg Exp $
# $MirOS: src/bin/mksh/check.t,v 1.439 2011/03/28 08:40:40 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 $
@ -25,7 +25,7 @@
# http://www.research.att.com/~gsf/public/ifs.sh
expected-stdout:
@(#)MIRBSD KSH R39 2011/03/27
@(#)MIRBSD KSH R39 2011/03/28
description:
Check version of shell.
stdin:
@ -1555,6 +1555,35 @@ expected-stdout:
3: abcdef
4: cdef
---
name: eglob-trim-3a
description:
Check eglobbing works in trims, for Korn Shell
category: !binsh
stdin:
set -o sh
x=foobar
y=foobaz
echo "<${x%bar|baz},${y%bar|baz}>"
echo "<${x%ba(r|z)},${y%ba(r|z)}>"
expected-stdout:
<foo,foo>
<foo,foo>
---
name: eglob-trim-3b
description:
Check eglobbing doesnt work in trims, for reduced-feature /bin/sh
category: binsh
stdin:
set -o sh
x=foobar
y=foobaz
echo "<${x%bar|baz},${y%bar|baz}>"
z='foo(bar'
echo "<${z%(*}>"
expected-stdout:
<foobar,foobaz>
<foo>
---
name: eglob-substrpl-1
description:
Check eglobbing works in substs... and they work at all

4
sh.h
View File

@ -154,9 +154,9 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.456 2011/03/27 18:50:05 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.457 2011/03/28 08:40:42 tg Exp $");
#endif
#define MKSH_VERSION "R39 2011/03/27"
#define MKSH_VERSION "R39 2011/03/28"
#ifndef MKSH_INCLUDES_ONLY