Results for builtin-bracket.test.sh

statusoshosh-cpp
pass 4645
FAIL 12
total4747
caseoshosh-cppdescription
0pass pass zero args: [ ]
1pass pass one arg: [ x ] where x is one of '=' '!' '(' ']'
2pass pass one arg: empty string is false. Equivalent to -n.
3pass pass -a as unary operator (alias of -e)
4pass pass two args: -z with = ! ( ]
5pass pass three args
6pass pass four args
7pass pass test with extra args is syntax error
8pass pass ] syntax errors
9pass pass -n
10pass pass ! -a
11pass pass -o
12pass pass ( )
13pass pass ( ) ! -a -o with system version of [
14pass pass == is alias for =
15pass pass == and = does not do glob
16pass pass [ with op variable
17pass pass [ with unquoted empty var
18pass pass [ compare with literal -f
19pass pass [ '(' foo ] is runtime syntax error
20pass pass -z '>' implies two token lookahead
21pass pass operator/operand ambiguity with ]
22pass pass operator/operand ambiguity with -a
23pass pass -d
24pass pass -x
25pass pass -r
26pass pass -w
27pass pass -k for sticky bit
28pass pass -h and -L test for symlink
29pass pass -t 1 for stdout
30pass pass [ -t invalid ]
31pass pass -ot and -nt
32pass pass [ a -eq b ]
33pass pass test -s
34pass pass test -b -c -S (block, character, socket)
35pass pass test -p named pipe
36pass pass -G and -O for effective user ID and group ID
37pass pass -u for setuid, -g too
38pass pass -v to test variable (bash)
39FAIL FAIL -v tests array/assoc expression (bash) - also see spec/dbracket)
detailsdetails
40pass pass test -o for options
41pass pass -nt -ot
42pass pass -ef
43pass FAIL Overflow error
details
44pass pass Bug regression
45pass pass test -c
46pass pass test -S
91 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh39 -v tests array/assoc expression (bash) - also see spec/dbracket)

[osh stdout] Expected 'zero=0\none=0\ntwo=1\n---\nzero=0\none=0\ntwo=1\n---\nempty=0\nk=0\nnonexistent=1\n' Got 'zero=1\none=1\ntwo=1\n---\nzero=1\none=1\ntwo=1\n---\nempty=1\nk=1\nnonexistent=1\n'

stdout:
zero=1
one=1
two=1
---
zero=1
one=1
two=1
---
empty=1
k=1
nonexistent=1
stderr:
osh-cpp39 -v tests array/assoc expression (bash) - also see spec/dbracket)

[osh-cpp stdout] Expected 'zero=0\none=0\ntwo=1\n---\nzero=0\none=0\ntwo=1\n---\nempty=0\nk=0\nnonexistent=1\n' Got 'zero=1\none=1\ntwo=1\n---\nzero=1\none=1\ntwo=1\n---\nempty=1\nk=1\nnonexistent=1\n'

stdout:
zero=1
one=1
two=1
---
zero=1
one=1
two=1
---
empty=1
k=1
nonexistent=1
stderr:
osh-cpp43 Overflow error

[osh-cpp stdout] Expected 'status=2\n', got 'status=1\n'

stdout:
status=1
stderr: