add testcase for today’s mailing list bug report

This commit is contained in:
tg 2014-07-29 17:56:31 +00:00
parent 80b8966367
commit d7984ff699

13
check.t
View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.656 2014/07/28 21:45:42 tg Exp $
# $MirOS: src/bin/mksh/check.t,v 1.657 2014/07/29 17:56:31 tg Exp $
# OpenBSD src/regress/bin/ksh updated: 2013/12/02 20:39:44
#-
# Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
@ -3733,6 +3733,17 @@ stdin:
expected-stdout:
<1> <shift> <1> <2>
---
name: IFS-subst-3
description:
Check leading IFS non-whitespace after trim does make a field
expected-fail: yes
stdin:
showargs() { for i; do echo -n " <$i>"; done; echo; }
IFS=:
showargs 1 ${-+:foo:bar}
expected-stdout:
<1> <> <foo> <bar>
---
name: IFS-arith-1
description:
http://austingroupbugs.net/view.php?id=832