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:
parent
6784af6dbd
commit
6fddfc009b
21
check.t
21
check.t
@ -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: 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 $
|
||||||
@ -1555,32 +1555,23 @@ expected-stdout:
|
|||||||
3: abcdef
|
3: abcdef
|
||||||
4: cdef
|
4: cdef
|
||||||
---
|
---
|
||||||
name: eglob-trim-3a
|
name: eglob-trim-3
|
||||||
description:
|
description:
|
||||||
Check eglobbing works in trims, for Korn Shell
|
Check eglobbing works in trims, for Korn Shell
|
||||||
category: !binsh
|
Ensure eglobbing does not work for reduced-feature /bin/sh
|
||||||
stdin:
|
stdin:
|
||||||
set -o sh
|
set +o sh
|
||||||
x=foobar
|
x=foobar
|
||||||
y=foobaz
|
y=foobaz
|
||||||
echo "<${x%bar|baz},${y%bar|baz}>"
|
echo "<${x%bar|baz},${y%bar|baz}>"
|
||||||
echo "<${x%ba(r|z)},${y%ba(r|z)}>"
|
echo "<${x%ba(r|z)},${y%ba(r|z)}>"
|
||||||
expected-stdout:
|
|
||||||
<foo,foo>
|
|
||||||
<foo,foo>
|
|
||||||
---
|
|
||||||
name: eglob-trim-3b
|
|
||||||
description:
|
|
||||||
Check eglobbing doesn’t work in trims, for reduced-feature /bin/sh
|
|
||||||
category: binsh
|
|
||||||
stdin:
|
|
||||||
set -o sh
|
set -o sh
|
||||||
x=foobar
|
|
||||||
y=foobaz
|
|
||||||
echo "<${x%bar|baz},${y%bar|baz}>"
|
echo "<${x%bar|baz},${y%bar|baz}>"
|
||||||
z='foo(bar'
|
z='foo(bar'
|
||||||
echo "<${z%(*}>"
|
echo "<${z%(*}>"
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
|
<foo,foo>
|
||||||
|
<foo,foo>
|
||||||
<foobar,foobaz>
|
<foobar,foobaz>
|
||||||
<foo>
|
<foo>
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user