Results for vars-special.test.sh

statusbashmkshkshtoyshsushbrushosh
pass 38212120252638
ok 0200001
N-I 01400000
BUG 0400000
FAIL 20202217163
TIME 2110000
total42424242424242
casebashmkshkshtoyshsushbrushoshdescription
0pass pass pass pass FAIL pass pass $PWD is set
details
1pass BUG FAIL pass FAIL pass pass $PWD is not only set, but exported
detailsdetailsdetails
2pass pass pass FAIL FAIL pass pass $PATH is set if unset at startup
detailsdetails
3TIME TIME TIME FAIL FAIL pass pass $HOME is NOT set
detailsdetailsdetailsdetailsdetails
4TIME N-I FAIL FAIL FAIL FAIL pass Vars set interactively only: $HISTFILE
detailsdetailsdetailsdetailsdetailsdetails
5pass ok FAIL FAIL FAIL FAIL pass Some vars are set, even without startup file, or env: PATH, PWD
detailsdetailsdetailsdetailsdetails
6pass BUG FAIL pass FAIL pass FAIL UID EUID PPID can't be changed
detailsdetailsdetailsdetails
7pass pass pass FAIL FAIL FAIL pass HOSTNAME OSTYPE can be changed
detailsdetailsdetails
8pass pass pass FAIL pass pass pass $1 .. $9 are scoped, while $0 is not
details
9pass pass pass pass pass pass pass $?
10pass pass pass FAIL pass pass pass $#
details
11pass pass pass pass pass pass pass $$ looks like a PID
12pass pass pass pass pass pass pass $$ doesn't change with subshell or command sub
13pass pass pass pass pass FAIL pass $BASHPID DOES change with subshell and command sub
details
14pass pass pass FAIL pass FAIL pass Background PID $! looks like a PID
detailsdetails
15pass pass pass pass FAIL pass pass $PPID
details
16pass pass pass FAIL pass pass pass $PIPESTATUS
details
17pass pass pass pass pass pass FAIL $RANDOM
details
18pass N-I FAIL pass FAIL pass pass $UID and $EUID
detailsdetailsdetails
19pass N-I FAIL pass pass pass pass $OSTYPE is non-empty
detailsdetails
20pass N-I FAIL pass FAIL pass pass $HOSTNAME
detailsdetailsdetails
21pass pass pass pass pass FAIL pass $LINENO is the current line, not line of function call
details
22pass pass pass pass FAIL pass pass $LINENO in "bare" redirect arg (bug regression)
details
23pass pass pass pass pass pass pass $LINENO in redirect arg (bug regression)
24pass N-I FAIL pass pass pass pass $LINENO in [[
detailsdetails
25pass pass pass FAIL pass pass pass $LINENO in ((
details
26pass ok FAIL pass pass pass pass $LINENO in for loop
detailsdetails
27pass pass pass FAIL pass FAIL pass $LINENO in other for loops
detailsdetails
28pass BUG FAIL FAIL FAIL pass FAIL $LINENO in for (( loop
detailsdetailsdetailsdetailsdetails
29pass pass pass FAIL pass pass pass $LINENO for assignment
details
30pass BUG FAIL FAIL FAIL pass pass $LINENO in case
detailsdetailsdetailsdetails
31pass N-I FAIL pass pass FAIL pass $_ with simple command and evaluation
detailsdetailsdetails
32pass N-I FAIL FAIL pass FAIL pass $_ and ${_}
detailsdetailsdetailsdetails
33pass N-I FAIL FAIL pass FAIL pass $_ with word splitting
detailsdetailsdetailsdetails
34FAIL N-I FAIL FAIL FAIL FAIL pass $_ with pipeline and subshell
detailsdetailsdetailsdetailsdetailsdetails
35pass N-I FAIL FAIL pass FAIL pass $_ with && and ||
detailsdetailsdetailsdetails
36pass N-I FAIL FAIL pass FAIL pass $_ is not reset with (( and [[
detailsdetailsdetailsdetails
37pass N-I FAIL FAIL FAIL FAIL ok $_ with assignments, arrays, etc.
detailsdetailsdetailsdetailsdetailsdetails
38pass N-I FAIL FAIL pass FAIL pass $_ with loop
detailsdetailsdetailsdetails
39pass pass pass pass pass pass pass $_ is not undefined on first use
40FAIL N-I FAIL FAIL FAIL FAIL pass BASH_VERSION / OILS_VERSION
detailsdetailsdetailsdetailsdetailsdetails
41pass pass pass pass pass pass pass $SECONDS
189 passed, 3 OK, 14 not implemented, 4 BUG, 80 failed, 4 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

sush0 $PWD is set

[sush status] Expected 0, got 1

stdout:
stderr: 
mksh1 $PWD is not only set, but exported

stdout:
stderr: 
ksh1 $PWD is not only set, but exported

[ksh status] Expected 0, got 1

stdout:
stderr: 
sush1 $PWD is not only set, but exported

[sush status] Expected 0, got 1

stdout:
stderr: 
toysh2 $PATH is set if unset at startup

[toysh stdout] Expected 'yes\nyes\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush2 $PATH is set if unset at startup

[sush stdout] Expected 'yes\nyes\n', got ''

stdout:
stderr: 
toysh3 $HOME is NOT set

[toysh stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush3 $HOME is NOT set

[sush stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got 'status=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
stderr:
: line : set: -i: invalid option
mksh4 Vars set interactively only: $HISTFILE

stdout:
stderr: 
ksh4 Vars set interactively only: $HISTFILE

[ksh stdout] Expected 'histfile=\nhistfile=yes\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: --: unknown option
E: ksh: --: unknown option
toysh4 Vars set interactively only: $HISTFILE

[toysh stdout] Expected 'histfile=\nhistfile=yes\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush4 Vars set interactively only: $HISTFILE

[sush stdout] Expected 'histfile=\nhistfile=yes\n', got ''
[sush status] Expected 0, got 2

stdout:
stderr: 
: line : -r: invalid option name
: line : -r: invalid option name
brush4 Vars set interactively only: $HISTFILE

[brush stdout] Expected 'histfile=\nhistfile=yes\n', got ''

stdout:
stderr: 
ERROR error: failed to source file: --rcfile; i/o error: No such file or directory (os error 2)
ERROR error: failed to source file: --rcfile; i/o error: No such file or directory (os error 2)
mksh5 Some vars are set, even without startup file, or env: PATH, PWD

stdout:
path pwd ps4 0
shellopts 0
home ps1 0
ifs 0
stderr:
typeset -x PATH=/usr/bin:/bin
typeset PWD=/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/vars-special.test.sh.3739844/05-mksh
typeset PS4='+ '
typeset -x HOME=
typeset PS1='$ '
typeset IFS=$' \t\n'
ksh5 Some vars are set, even without startup file, or env: PATH, PWD

[ksh stdout] Expected 'path pwd ps4 0\nshellopts 0\nhome ps1 1\nifs 0\n' Got 'path pwd ps4 0\nshellopts 0\nhome ps1 0\nifs 0\n'

stdout:
path pwd ps4 0
shellopts 0
home ps1 0
ifs 0
stderr:
typeset -x PATH=/usr/bin:/bin
typeset PWD=/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/vars-special.test.sh.3739844/05-ksh
typeset PS4='+ '
typeset -x HOME
typeset PS1='$ '
typeset IFS=$' \t\n'
toysh5 Some vars are set, even without startup file, or env: PATH, PWD

[toysh stdout] Expected 'path pwd ps4 0\nshellopts 0\nhome ps1 1\nifs 0\n' Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush5 Some vars are set, even without startup file, or env: PATH, PWD

[sush stdout] Expected 'path pwd ps4 0\nshellopts 0\nhome ps1 1\nifs 0\n' Got 'path pwd ps4 1\nshellopts 1\nhome ps1 1\nifs 0\n'

stdout:
path pwd ps4 1
shellopts 1
home ps1 1
ifs 0
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: PATH: not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: SHELLOPTS: not found
declare -- HOME=/
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: PS1: not found
declare -- IFS=$' 	\n'
brush5 Some vars are set, even without startup file, or env: PATH, PWD

[brush stdout] Expected 'path pwd ps4 0\nshellopts 0\nhome ps1 1\nifs 0\n' Got 'declare -- PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"\ndeclare -x PWD="/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/vars-special.test.sh.3739844/05-brush"\ndeclare -- PS4="+ "\npath pwd ps4 0\ndeclare -r SHELLOPTS="braceexpand:hashall:interactive-comments"\nshellopts 0\nhome ps1 1\ndeclare -- IFS=$\' \\t\\n\'\nifs 0\n'

stdout:
declare -- PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
declare -x PWD="/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/vars-special.test.sh.3739844/05-brush"
declare -- PS4="+ "
path pwd ps4 0
declare -r SHELLOPTS="braceexpand:hashall:interactive-comments"
shellopts 0
home ps1 1
declare -- IFS=$' \t\n'
ifs 0
stderr:
declare: HOME: not found
declare: PS1: not found
mksh6 UID EUID PPID can't be changed

stdout:
uid=xx
euid=xx
status=0
stderr:
ksh6 UID EUID PPID can't be changed

[ksh stdout] Expected 'status=1\n', got 'uid=xx\neuid=xx\nstatus=0\n'

stdout:
uid=xx
euid=xx
status=0
stderr:
sush6 UID EUID PPID can't be changed

[sush stdout] Expected 'status=1\n', got 'euid=xx\nppid=xx\nstatus=0\n'

stdout:
euid=xx
ppid=xx
status=0
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: UID: readonly variable
osh6 UID EUID PPID can't be changed

[osh stdout] Expected 'status=1\n', got 'uid=xx\neuid=xx\nppid=xx\nstatus=0\n'

stdout:
uid=xx
euid=xx
ppid=xx
status=0
stderr:
toysh7 HOSTNAME OSTYPE can be changed

[toysh stdout] Expected 'hostname=x\nostype=x\n\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush7 HOSTNAME OSTYPE can be changed

[sush stdout] Expected 'hostname=x\nostype=x\n\n', got 'hostname=x\nostype=linux\n\n'

stdout:
hostname=x
ostype=linux

stderr:
brush7 HOSTNAME OSTYPE can be changed

[brush stdout] Expected 'hostname=x\nostype=x\n\n', got 'hostname=hoover\nostype=linux-gnu\n\n'

stdout:
hostname=hoover
ostype=linux-gnu

stderr:
toysh8 $1 .. $9 are scoped, while $0 is not

[toysh stdout] Expected 'sh\na b\n', got 'a b\n'

stdout:
a b
stderr:
toysh10 $#

[toysh stdout] Expected '4\n', got '0\n'

stdout:
0
stderr:
set: bad --
brush13 $BASHPID DOES change with subshell and command sub

[brush stdout] Expected 'subshell OK\ncommand sub OK\n', got '\n'

stdout:
stderr: 
should not be equal: 3749077 = 3749077
should not be equal: 3749077 = 3749077
toysh14 Background PID $! looks like a PID

[toysh stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
brush14 Background PID $! looks like a PID

[brush stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
sush15 $PPID

[sush status] Expected 0, got 1

stdout:
stderr: 
toysh16 $PIPESTATUS

[toysh stdout] Expected "['0', '33', '0']\n", got "['']\n"

stdout:
['']
stderr:
osh17 $RANDOM

[osh status] Expected 0, got 99

stdout:
51
stderr:
mksh18 $UID and $EUID

stdout:
stderr: 
ksh18 $UID and $EUID

[ksh stdout] Expected 'status=0\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
sush18 $UID and $EUID

[sush stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: errexit: invalid option name
mksh19 $OSTYPE is non-empty

stdout:
status=1
stderr:
ksh19 $OSTYPE is non-empty

[ksh stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
mksh20 $HOSTNAME

stdout:
status=1
stderr:
ksh20 $HOSTNAME

[ksh stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
sush20 $HOSTNAME

[sush stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
brush21 $LINENO is the current line, not line of function call

[brush stdout] Expected "1\n['6']\n['3']\n['8']\n", got "1\n['4']\n['4']\n['4']\n"

stdout:
1
['4']
['4']
['4']
stderr:
sush22 $LINENO in "bare" redirect arg (bug regression)

[sush stdout] Expected 'written\n5\n', got '5\n'

stdout:
5
stderr:
mksh24 $LINENO in [[

stdout:
one
stderr:
ksh24 $LINENO in [[

[ksh stdout] Expected 'one\nOK\n', got 'one\n'
[ksh status] Expected 0, got 1

stdout:
one
stderr:
toysh25 $LINENO in ((

[toysh stdout] Expected 'one\n2\n', got 'one\n'
[toysh status] Expected 0, got -11

stdout:
one
stderr:
mksh26 $LINENO in for loop

stdout:
one
1
zzz
stderr:
ksh26 $LINENO in for loop

[ksh stdout] Expected 'one\n2\nzzz\n', got 'one\n1\nzzz\n'

stdout:
one
1
zzz
stderr:
toysh27 $LINENO in other for loops

[toysh stdout] Expected '3 a\n3 b\n3 c\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
set: bad --
main: line 2: sh: syntax error: ;
brush27 $LINENO in other for loops

[brush stdout] Expected '3 a\n3 b\n3 c\n', got '2 a\n2 b\n2 c\n'

stdout:
2 a
2 b
2 c
stderr:
mksh28 $LINENO in for (( loop

stdout:
one
stderr:
mksh: <stdin>[2]: syntax error: '((' unexpected
ksh28 $LINENO in for (( loop

[ksh stdout] Expected 'one\n0\n1\n', got 'one\n'
[ksh status] Expected 0, got 1

stdout:
one
stderr:
E: ksh: <stdin>[2]: syntax error: unexpected '(('
toysh28 $LINENO in for (( loop

[toysh stdout] Expected 'one\n0\n1\n', got 'one\n'
[toysh status] Expected 0, got 2

stdout:
one
stderr:
main: line 2: sh: syntax error: ;
sush28 $LINENO in for (( loop

[sush stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n'

stdout:
one
0
1
2
stderr:
osh28 $LINENO in for (( loop

[osh stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n'

stdout:
one
0
1
2
stderr:
toysh29 $LINENO for assignment

[toysh stdout] Expected '1 1\n2 2\n', got ''
[toysh status] Expected 0, got -11

stdout:
stderr: 
mksh30 $LINENO in case

stdout:
line=3
stderr:
ksh30 $LINENO in case

[ksh stdout] Expected 'got line 1\n', got 'line=3\n'

stdout:
line=3
stderr:
toysh30 $LINENO in case

[toysh status] Expected 0, got -6

stdout:
got line 1
stderr:
free(): invalid pointer
sush30 $LINENO in case

[sush stdout] Expected 'got line 1\n', got 'line=3\n'

stdout:
line=3
stderr:
mksh31 $_ with simple command and evaluation

stdout:
hi world

stderr:
ksh31 $_ with simple command and evaluation

[ksh stdout] Expected 'hi world\nhi world\n', got 'hi world\n\n'

stdout:
hi world

stderr:
brush31 $_ with simple command and evaluation

[brush stdout] Expected 'hi world\nhi world\n', got 'hi world\n\n'

stdout:
hi world

stderr:
mksh32 $_ and ${_}

stdout:
stderr: 
ksh32 $_ and ${_}

[ksh stdout] Expected '42 value 42var\nfoobar\n', got 'value var\n\n'

stdout:
value var

stderr:
toysh32 $_ and ${_}

[toysh stdout] Expected '42 value 42var\nfoobar\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: (
brush32 $_ and ${_}

[brush stdout] Expected '42 value 42var\nfoobar\n', got 'value var\n\n'

stdout:
value var

stderr:
mksh33 $_ with word splitting

stdout:
stderr: 
ksh33 $_ with word splitting

[ksh stdout] Expected 'spaces\n', got '\n'

stdout:
stderr: 
E: ksh: <stdin>[3]: setopt: inaccessible or not found
toysh33 $_ with word splitting

[toysh stdout] Expected 'spaces\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: (
brush33 $_ with word splitting

[brush stdout] Expected 'spaces\n', got '\n'

stdout:
stderr: 
setopt: command not found
bash34 $_ with pipeline and subshell

[bash stdout] Expected 'last=\npipeline=last=\nsubshell=pipeline=last=\ndone=pipeline=last=\n' Got 'last=lastpipe\npipeline=last=lastpipe\nsubshell=pipeline=last=lastpipe\ndone=pipeline=last=lastpipe\n'

stdout:
last=lastpipe
pipeline=last=lastpipe
subshell=pipeline=last=lastpipe
done=pipeline=last=lastpipe
stderr:
seq: write error: Broken pipe
mksh34 $_ with pipeline and subshell

stdout:
stderr: 
ksh34 $_ with pipeline and subshell

[ksh stdout] Expected 'last=\npipeline=last=\nsubshell=pipeline=last=\ndone=pipeline=last=\n' Got 'last=\npipeline=\nsubshell=\ndone=\n'

stdout:
last=
pipeline=
subshell=
done=
stderr:
E: ksh: <stdin>[3]: shopt: inaccessible or not found
seq: write error: Broken pipe
toysh34 $_ with pipeline and subshell

[toysh stdout] Expected 'last=\npipeline=last=\nsubshell=pipeline=last=\ndone=pipeline=last=\n' Got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: (
sush34 $_ with pipeline and subshell

[sush stdout] Expected 'last=\npipeline=last=\nsubshell=pipeline=last=\ndone=pipeline=last=\n' Got 'last=3\npipeline=last=3\nsubshell=pipeline=last=3\ndone=pipeline=last=3\n'

stdout:
last=3
pipeline=last=3
subshell=pipeline=last=3
done=pipeline=last=3
stderr:
brush34 $_ with pipeline and subshell

[brush stdout] Expected 'last=\npipeline=last=\nsubshell=pipeline=last=\ndone=pipeline=last=\n' Got 'last=\npipeline=\nsubshell=\ndone=\n'

stdout:
last=
pipeline=
subshell=
done=
stderr:
mksh35 $_ with && and ||

stdout:
stderr: 
ksh35 $_ with && and ||

[ksh stdout] Expected 'hi\nlast=hi\nand=last=hi\nhi\nor=hi\n', got 'hi\nlast=\nand=\nhi\nor=\n'

stdout:
hi
last=
and=
hi
or=
stderr:
toysh35 $_ with && and ||

[toysh stdout] Expected 'hi\nlast=hi\nand=last=hi\nhi\nor=hi\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: (
brush35 $_ with && and ||

[brush stdout] Expected 'hi\nlast=hi\nand=last=hi\nhi\nor=hi\n', got 'hi\nlast=\nand=\nhi\nor=\n'

stdout:
hi
last=
and=
hi
or=
stderr:
mksh36 $_ is not reset with (( and [[

stdout:
stderr: 
ksh36 $_ is not reset with (( and [[

[ksh stdout] Expected 'simple\n(( simple\n[[ (( simple\n', got 'simple\n(( \n[[ \n'

stdout:
simple
(( 
[[ 
stderr:
toysh36 $_ is not reset with (( and [[

[toysh stdout] Expected 'simple\n(( simple\n[[ (( simple\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: (
brush36 $_ is not reset with (( and [[

[brush stdout] Expected 'simple\n(( simple\n[[ (( simple\n', got 'simple\n(( \n[[ \n'

stdout:
simple
(( 
[[ 
stderr:
mksh37 $_ with assignments, arrays, etc.

stdout:
stderr: 
ksh37 $_ with assignments, arrays, etc.

[ksh stdout] Expected 'colon [foo]\nbare assign []\ndeclare [s=bar]\narray []\ndeclare array [a]\ndeclare flag [d]\n' Got 'colon []\nbare assign []\ndeclare []\narray []\n'
[ksh status] Expected 0, got 1

stdout:
colon []
bare assign []
declare []
array []
stderr:
E: ksh: <stdin>[9]: declare: inaccessible or not found
E: ksh: <stdin>[15]: syntax error: unexpected '('
toysh37 $_ with assignments, arrays, etc.

[toysh stdout] Expected 'colon [foo]\nbare assign []\ndeclare [s=bar]\narray []\ndeclare array [a]\ndeclare flag [d]\n' Got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: (
sush37 $_ with assignments, arrays, etc.

[sush stdout] Expected 'colon [foo]\nbare assign []\ndeclare [s=bar]\narray []\ndeclare array [a]\ndeclare flag [d]\n' Got 'colon [foo]\nbare assign []\ndeclare [declare]\narray []\ndeclare array [declare]\ndeclare flag [-g]\n'

stdout:
colon [foo]
bare assign []
declare [declare]
array []
declare array [declare]
declare flag [-g]
stderr:
brush37 $_ with assignments, arrays, etc.

[brush stdout] Expected 'colon [foo]\nbare assign []\ndeclare [s=bar]\narray []\ndeclare array [a]\ndeclare flag [d]\n' Got 'colon []\nbare assign []\ndeclare []\narray []\ndeclare array []\ndeclare flag []\n'

stdout:
colon []
bare assign []
declare []
array []
declare array []
declare flag []
stderr:
osh37 $_ with assignments, arrays, etc.

stdout:
colon [foo]
bare assign [colon [foo]]
declare [bare assign [colon [foo]]]
array [declare [bare assign [colon [foo]]]]
declare array [array [declare [bare assign [colon [foo]]]]]
declare flag [declare array [array [declare [bare assign [colon [foo]]]]]]
stderr:
mksh38 $_ with loop

stdout:
stderr: 
ksh38 $_ with loop

[ksh stdout] Expected 'init\nbegin=init\nprev=begin=init\nprev=prev=begin=init\nprev=prev=prev=begin=init\n' Got 'init\nbegin=\nprev=\nprev=\nprev=\n'

stdout:
init
begin=
prev=
prev=
prev=
stderr:
toysh38 $_ with loop

[toysh stdout] Expected 'init\nbegin=init\nprev=begin=init\nprev=prev=begin=init\nprev=prev=prev=begin=init\n' Got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: (
brush38 $_ with loop

[brush stdout] Expected 'init\nbegin=init\nprev=begin=init\nprev=prev=begin=init\nprev=prev=prev=begin=init\n' Got 'init\nbegin=\nprev=\nprev=\nprev=\n'

stdout:
init
begin=
prev=
prev=
prev=
stderr:
bash40 BASH_VERSION / OILS_VERSION

[bash stdout] Expected 'matched=0\n', got 'matched=1\n'

stdout:
matched=1
stderr:
mksh40 BASH_VERSION / OILS_VERSION

stdout:
no version
stderr:
ksh40 BASH_VERSION / OILS_VERSION

[ksh stdout] Expected 'matched=0\n', got 'no version\n'

stdout:
no version
stderr:
toysh40 BASH_VERSION / OILS_VERSION

[toysh stdout] Expected 'matched=0\n', got 'no version\n'
[toysh status] Expected 0, got -6

stdout:
no version
stderr:
munmap_chunk(): invalid pointer
sush40 BASH_VERSION / OILS_VERSION

[sush stdout] Expected 'matched=0\n', got 'no version\n'

stdout:
no version
stderr:
brush40 BASH_VERSION / OILS_VERSION

[brush stdout] Expected 'matched=0\n', got 'no version\n'

stdout:
no version
stderr: