Results for vars-special.test.sh

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

stdout:
zsh sets HOME
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
dash4 Vars set interactively only: $HISTFILE

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

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

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

stdout:
stderr: 
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 'histfile=yes\nhistfile=yes\n'

stdout:
histfile=yes
histfile=yes
stderr:
dash5 Some vars are set, even without startup file, or env: PATH, PWD

stdout:
stderr: 
ash5 Some vars are set, even without startup file, or env: PATH, PWD

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

stdout:
path pwd ps4 127
shellopts 127
home ps1 127
ifs 127
stderr:
/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0/ash: typeset: not found
/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0/ash: typeset: not found
/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0/ash: typeset: not found
/home/andy/wedge/oils-for-unix.org/pkg/busybox/1.35.0/ash: typeset: not found
zsh5 Some vars are set, even without startup file, or env: PATH, PWD

stdout:
path pwd ps4 0
shellopts 1
home ps1 0
ifs 0
stderr:
typeset PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin
typeset PWD=/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/vars-special.test.sh.4074124/05-zsh
typeset PS4='+%N:%i> '
zsh:typeset:1: no such variable: SHELLOPTS
typeset HOME=/home/andy
typeset PS1=''
typeset IFS=' 	
'
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.4074124/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.4074124/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.4074124/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.4074124/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
dash6 UID EUID PPID can't be changed

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

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

stdout:
uid=xx
euid=xx
status=0
stderr:
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:
zsh7 HOSTNAME OSTYPE can be changed

stdout:
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:
zsh8 $1 .. $9 are scoped, while $0 is not

stdout:
a b
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 --
dash13 $BASHPID DOES change with subshell and command sub

stdout:
stderr: 
empty BASHPID in parent
ash13 $BASHPID DOES change with subshell and command sub

[ash stdout] Expected 'subshell OK\ncommand sub OK\n', got ''
[ash status] Expected 3, got 1

stdout:
stderr: 
empty BASHPID in parent
zsh13 $BASHPID DOES change with subshell and command sub

stdout:
stderr: 
empty BASHPID in parent
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: 4084375 = 4084375
should not be equal: 4084375 = 4084375
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: 
dash16 $PIPESTATUS

stdout:
stderr: 
dash: 2: Bad substitution
ash16 $PIPESTATUS

[ash stdout] Expected "['0', '33', '0']\n", got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: syntax error: bad substitution
zsh16 $PIPESTATUS

stdout:
['']
stderr:
toysh16 $PIPESTATUS

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

stdout:
['']
stderr:
dash17 $RANDOM

stdout:
0
stderr:
osh17 $RANDOM

[osh status] Expected 0, got 99

stdout:
51
stderr:
dash18 $UID and $EUID

stdout:
stderr: 
ash18 $UID and $EUID

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

stdout:
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
dash19 $OSTYPE is non-empty

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

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

stdout:
status=1
stderr:
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:
dash20 $HOSTNAME

stdout:
status=1
stderr:
zsh20 $HOSTNAME

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:
dash21 $LINENO is the current line, not line of function call

stdout:
1
['2']
['2']
['4']
stderr:
zsh21 $LINENO is the current line, not line of function call

stdout:
1
['1']
['1']
['3']
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:
zsh22 $LINENO in "bare" redirect arg (bug regression)

stdout:
stderr: 
sush22 $LINENO in "bare" redirect arg (bug regression)

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

stdout:
5
stderr:
dash24 $LINENO in [[

stdout:
one
stderr:
dash: 2: [[: not found
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:
dash25 $LINENO in ((

stdout:
one

stderr:
dash: 2: x: not found
ash25 $LINENO in ((

[ash stdout] Expected 'one\n2\n', got 'one\n\n'

stdout:
one

stderr:
ash: x: not found
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:
dash28 $LINENO in for (( loop

stdout:
one
stderr:
dash: 2: Syntax error: Bad for loop variable
ash28 $LINENO in for (( loop

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

stdout:
one
stderr:
ash: syntax error: bad for loop variable
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:
dash31 $_ with simple command and evaluation

stdout:
hi world

stderr:
ash31 $_ with simple command and evaluation

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

stdout:
hi world

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:
dash32 $_ and ${_}

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

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

stdout:
value var

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:
dash33 $_ with word splitting

stdout:
stderr: 
ash33 $_ with word splitting

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

stdout:
stderr: 
ash: setopt: not found
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
dash34 $_ with pipeline and subshell

stdout:
stderr: 
ash34 $_ with pipeline and subshell

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

stdout:
last=
pipeline=
subshell=
done=
stderr:
ash: shopt: not found
seq: write error: Broken pipe
zsh34 $_ with pipeline and subshell

stdout:
last=3
pipeline=last=3
subshell=
done=
stderr:
zsh: command not found: shopt
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:
dash35 $_ with && and ||

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

[ash 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:
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:
dash36 $_ is not reset with (( and [[

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

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

stdout:
simple
(( 
[[ 
stderr:
ash: a: not found
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:
dash37 $_ with assignments, arrays, etc.

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

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

stdout:
colon []
bare assign []
declare []
stderr:
ash: declare: not found
ash: syntax error: unexpected "("
zsh37 $_ with assignments, arrays, etc.

stdout:
colon [foo]
bare assign []
declare [declare]
array [declare [declare]]
declare array [declare]
declare flag [-g]
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:
dash38 $_ with loop

stdout:
stderr: 
ash38 $_ with loop

[ash 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:
zsh38 $_ with loop

stdout:
init
begin=init
prev=
prev=prev=
prev=prev=prev=
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:
dash39 $_ is not undefined on first use

stdout:
stderr: 
dash: 1: _: parameter not set
ash39 $_ is not undefined on first use

[ash stdout] Expected 'status=0\n', got ''
[ash status] Expected 0, got 2

stdout:
stderr: 
ash: _: parameter not set
bash40 BASH_VERSION / OILS_VERSION

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

stdout:
matched=1
stderr:
dash40 BASH_VERSION / OILS_VERSION

stdout:
no version
stderr:
ash40 BASH_VERSION / OILS_VERSION

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

stdout:
no version
stderr:
zsh40 BASH_VERSION / OILS_VERSION

stdout:
no version
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:
dash41 $SECONDS

stdout:
stderr: 
ash41 $SECONDS

[ash stdout] Expected 'ok\n', got ''

stdout:
stderr: