sync clog
This commit is contained in:
73
check.t
73
check.t
@ -1,4 +1,4 @@
|
|||||||
# $MirOS: src/bin/mksh/check.t,v 1.724 2016/02/24 01:47:30 tg Exp $
|
# $MirOS: src/bin/mksh/check.t,v 1.725 2016/02/26 22:03:10 tg Exp $
|
||||||
# -*- mode: sh -*-
|
# -*- mode: sh -*-
|
||||||
#-
|
#-
|
||||||
# Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
# Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||||
@ -30,7 +30,7 @@
|
|||||||
# (2013/12/02 20:39:44) http://openbsd.cs.toronto.edu/cgi-bin/cvsweb/src/regress/bin/ksh/?sortby=date
|
# (2013/12/02 20:39:44) http://openbsd.cs.toronto.edu/cgi-bin/cvsweb/src/regress/bin/ksh/?sortby=date
|
||||||
|
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
@(#)MIRBSD KSH R52 2016/02/23
|
@(#)MIRBSD KSH R52 2016/02/26
|
||||||
description:
|
description:
|
||||||
Check version of shell.
|
Check version of shell.
|
||||||
stdin:
|
stdin:
|
||||||
@ -39,7 +39,7 @@ name: KSH_VERSION
|
|||||||
category: shell:legacy-no
|
category: shell:legacy-no
|
||||||
---
|
---
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
@(#)LEGACY KSH R52 2016/02/23
|
@(#)LEGACY KSH R52 2016/02/26
|
||||||
description:
|
description:
|
||||||
Check version of legacy shell.
|
Check version of legacy shell.
|
||||||
stdin:
|
stdin:
|
||||||
@ -2657,6 +2657,32 @@ stdin:
|
|||||||
expected-stdout:
|
expected-stdout:
|
||||||
= these parens \( ) are a problem =
|
= these parens \( ) are a problem =
|
||||||
---
|
---
|
||||||
|
name: heredoc-comsub-5
|
||||||
|
description:
|
||||||
|
Check heredoc and COMSUB mixture in input
|
||||||
|
stdin:
|
||||||
|
prefix() { sed -e "s/^/$1:/"; }
|
||||||
|
XXX() { echo x-en; }
|
||||||
|
YYY() { echo y-es; }
|
||||||
|
|
||||||
|
prefix A <<XXX && echo "$(prefix B <<XXX
|
||||||
|
echo line 1
|
||||||
|
XXX
|
||||||
|
echo line 2)" && prefix C <<YYY
|
||||||
|
echo line 3
|
||||||
|
XXX
|
||||||
|
echo line 4)"
|
||||||
|
echo line 5
|
||||||
|
YYY
|
||||||
|
XXX
|
||||||
|
expected-stdout:
|
||||||
|
A:echo line 3
|
||||||
|
B:echo line 1
|
||||||
|
line 2
|
||||||
|
C:echo line 4)"
|
||||||
|
C:echo line 5
|
||||||
|
x-en
|
||||||
|
---
|
||||||
name: heredoc-subshell-1
|
name: heredoc-subshell-1
|
||||||
description:
|
description:
|
||||||
Tests for here documents in subshells, taken from Austin ML
|
Tests for here documents in subshells, taken from Austin ML
|
||||||
@ -6578,6 +6604,37 @@ stdin:
|
|||||||
expected-exit: 1
|
expected-exit: 1
|
||||||
expected-stderr-pattern: !/not set/
|
expected-stderr-pattern: !/not set/
|
||||||
---
|
---
|
||||||
|
name: xxx-param-subst-qmark-namespec
|
||||||
|
description:
|
||||||
|
Check special names are output correctly
|
||||||
|
stdin:
|
||||||
|
doit() {
|
||||||
|
"$__progname" -c "$@" >o1 2>o2
|
||||||
|
rv=$?
|
||||||
|
echo RETVAL: $rv
|
||||||
|
sed -e "s^${__progname%.exe}\.*e*x*e*: PROG: " -e 's/^/STDOUT: /g' <o1
|
||||||
|
sed -e "s^${__progname%.exe}\.*e*x*e*: PROG: " -e 's/^/STDERR: /g' <o2
|
||||||
|
}
|
||||||
|
doit 'echo ${1x}'
|
||||||
|
doit 'echo "${1x}"'
|
||||||
|
doit 'echo ${1?}'
|
||||||
|
doit 'echo ${19?}'
|
||||||
|
doit 'echo ${!:?}'
|
||||||
|
doit -u 'echo ${*:?}' foo ""
|
||||||
|
expected-stdout:
|
||||||
|
RETVAL: 1
|
||||||
|
STDERR: PROG: ${1x}: bad substitution
|
||||||
|
RETVAL: 1
|
||||||
|
STDERR: PROG: ${1x}: bad substitution
|
||||||
|
RETVAL: 1
|
||||||
|
STDERR: PROG: 1: parameter null or not set
|
||||||
|
RETVAL: 1
|
||||||
|
STDERR: PROG: 19: parameter null or not set
|
||||||
|
RETVAL: 1
|
||||||
|
STDERR: PROG: !: parameter null or not set
|
||||||
|
RETVAL: 1
|
||||||
|
STDERR: foo: ${*:?}: bad substitution
|
||||||
|
---
|
||||||
name: xxx-param-_-1
|
name: xxx-param-_-1
|
||||||
# fails due to weirdness of execv stuff
|
# fails due to weirdness of execv stuff
|
||||||
category: !os:uwin-nt
|
category: !os:uwin-nt
|
||||||
@ -12111,6 +12168,14 @@ expected-stdout:
|
|||||||
echo = done
|
echo = done
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
= without command
|
= without command
|
||||||
|
before 0='snc' 1='一' 2='二'
|
||||||
|
after 0='snc' 1='二' 2=''
|
||||||
|
= with command
|
||||||
|
before 0='swc' 1='一' 2='二'
|
||||||
|
after 0='swc' 1='二' 2=''
|
||||||
|
= done
|
||||||
|
---
|
||||||
|
name: command-path
|
||||||
description:
|
description:
|
||||||
Check 'command -p' is not 'whence -p'
|
Check 'command -p' is not 'whence -p'
|
||||||
stdin:
|
stdin:
|
||||||
@ -12183,7 +12248,7 @@ stdin:
|
|||||||
name: xtrace-1
|
name: xtrace-1
|
||||||
description:
|
description:
|
||||||
Check that "set -x" doesn't redirect too quickly
|
Check that "set -x" doesn't redirect too quickly
|
||||||
stdin:
|
stdin:
|
||||||
print '#!'"$__progname" >bash
|
print '#!'"$__progname" >bash
|
||||||
cat >>bash <<'EOF'
|
cat >>bash <<'EOF'
|
||||||
echo 'GNU bash, version 2.05b.0(1)-release (i386-ecce-mirbsd10)
|
echo 'GNU bash, version 2.05b.0(1)-release (i386-ecce-mirbsd10)
|
||||||
|
Reference in New Issue
Block a user