make another Debian posh bug into a regression test (expected-fail)
This commit is contained in:
parent
c0589fd329
commit
2ea131ab1f
14
check.t
14
check.t
@ -1,4 +1,4 @@
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.313 2009/10/02 16:59:53 tg Exp $
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.314 2009/10/02 17:05:01 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 $
|
||||
@ -220,6 +220,18 @@ expected-stdout:
|
||||
30
|
||||
1,j+=2
|
||||
---
|
||||
name: arith-lazy-3
|
||||
description:
|
||||
Check that assignments not done on non-evaluated side of ternary
|
||||
operator and this construct is parsed correctly (Debian #445651)
|
||||
expected-fail: yes
|
||||
stdin:
|
||||
x=4
|
||||
y=$((0 ? x=1 : 2))
|
||||
echo = $x $y =
|
||||
expected-stdout:
|
||||
= 4 2 =
|
||||
---
|
||||
name: arith-ternary-prec-1
|
||||
description:
|
||||
Check precedence of ternary operator vs assignment
|
||||
|
Loading…
Reference in New Issue
Block a user