I made a mistake in the tests; this stuff works always (and can be tested)

but triggers only for /bin/sh if MKSH_BINSHREDUCED (otherwise needs -o sh)
This commit is contained in:
tg 2011-03-28 21:18:00 +00:00
parent 6784af6dbd
commit 6fddfc009b
1 changed files with 6 additions and 15 deletions

21
check.t
View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.439 2011/03/28 08:40:40 tg Exp $
# $MirOS: src/bin/mksh/check.t,v 1.440 2011/03/28 21:18:00 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 $
@ -1555,32 +1555,23 @@ expected-stdout:
3: abcdef
4: cdef
---
name: eglob-trim-3a
name: eglob-trim-3
description:
Check eglobbing works in trims, for Korn Shell
category: !binsh
Ensure eglobbing does not work for reduced-feature /bin/sh
stdin:
set -o sh
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:
<foo,foo>
<foo,foo>
<foobar,foobaz>
<foo>
---