Results for prompt.test.sh

statusoshosh-cpp
pass 2525
FAIL 88
total3333
caseoshosh-cppdescription
0pass pass sh -i
1pass pass \[\] are non-printing
2pass pass literal escapes
3pass pass special case for $
4pass pass PS1 evaluation order
5pass pass PS1 evaluation order 2
6pass pass \1004
7pass pass \001 octal literals are supported
8pass pass \555 is beyond max octal byte of \377 and wrapped to m
9pass pass \x55 hex literals not supported
10pass pass Single backslash
11pass pass Escaped backslash
12pass pass \0001 octal literals are not supported
13pass pass \u0001 unicode literals not supported
14pass pass constant string
15pass pass hostname
16pass pass username
17pass pass current working dir
18pass pass \W is basename of working dir
19FAIL FAIL \t for 24h time (HH:MM:SS)
detailsdetails
20FAIL FAIL \T for 12h time (HH:MM:SS)
detailsdetails
21FAIL FAIL \@ for 12h time (HH:MM AM/PM)
detailsdetails
22pass pass \A for 24h time (HH:MM)
23FAIL FAIL \d for date
detailsdetails
24pass pass \D{%H:%M} for strftime
25pass pass \D{} for locale specific strftime
26pass pass \s for shell, \v for major.minor version, and \V for full version
27FAIL FAIL \j for number of jobs
detailsdetails
28FAIL FAIL \l for TTY device basename
detailsdetails
29FAIL FAIL \! for history number
detailsdetails
30FAIL FAIL \# for command number
detailsdetails
31pass pass @P with array
32pass pass default PS1
50 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
8 failed under osh

Details on runs that didn't PASS

osh19 \t for 24h time (HH:MM:SS)

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

stdout:
matched=1
stderr:
osh-cpp19 \t for 24h time (HH:MM:SS)

[osh-cpp stdout] Expected 'matched=0\n', got 'matched=1\n'

stdout:
matched=1
stderr:
osh20 \T for 12h time (HH:MM:SS)

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

stdout:
matched=1
stderr:
osh-cpp20 \T for 12h time (HH:MM:SS)

[osh-cpp stdout] Expected 'matched=0\n', got 'matched=1\n'

stdout:
matched=1
stderr:
osh21 \@ for 12h time (HH:MM AM/PM)

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

stdout:
matched=1
stderr:
osh-cpp21 \@ for 12h time (HH:MM AM/PM)

[osh-cpp stdout] Expected 'matched=0\n', got 'matched=1\n'

stdout:
matched=1
stderr:
osh23 \d for date

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

stdout:
matched=1
stderr:
osh-cpp23 \d for date

[osh-cpp stdout] Expected 'matched=0\n', got 'matched=1\n'

stdout:
matched=1
stderr:
osh27 \j for number of jobs

[osh stdout] Expected 'matched=0\nmatched=0\nsleep 5\nmatched=0\n', got 'matched=1\nmatched=1\nmatched=1\n'

stdout:
matched=1
matched=1
matched=1
stderr:
  set -m # enable job control
      ^~
[ stdin ]:1: 'set' got invalid flag '-m'
kill: failed to parse argument: '%%'
fg: PID 19737 Continued
[ stdin ]:9: fg builtin I/O error: No such process
osh-cpp27 \j for number of jobs

[osh-cpp stdout] Expected 'matched=0\nmatched=0\nsleep 5\nmatched=0\n', got 'matched=1\nmatched=1\nmatched=1\n'

stdout:
matched=1
matched=1
matched=1
stderr:
  set -m # enable job control
      ^~
[ stdin ]:1: 'set' got invalid flag '-m'
kill: failed to parse argument: '%%'
fg: PID 20641 Continued
[ stdin ]:9: fg builtin I/O error: No such process
osh28 \l for TTY device basename

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

stdout:
matched=1
stderr:
osh-cpp28 \l for TTY device basename

[osh-cpp stdout] Expected 'matched=0\n', got 'matched=1\n'

stdout:
matched=1
stderr:
osh29 \! for history number

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

stdout:
matched=1
matched=1
stderr:
  set -o history # enable history
  ^~~
[ stdin ]:1: 'set' got invalid option 'history'
osh-cpp29 \! for history number

[osh-cpp stdout] Expected 'matched=0\nmatched=0\n', got 'matched=1\nmatched=1\n'

stdout:
matched=1
matched=1
stderr:
  set -o history # enable history
  ^~~
[ stdin ]:1: 'set' got invalid option 'history'
osh30 \# for command number

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

stdout:
matched=1
stderr:
osh-cpp30 \# for command number

[osh-cpp stdout] Expected 'matched=0\n', got 'matched=1\n'

stdout:
matched=1
stderr: