Results for ysh-command-sub.test.sh

statusoshosh-cpp
pass 72
FAIL 05
total77
caseoshosh-cppdescription
0pass pass Conflict with extglob @( can be avoided with ,(
1pass FAIL split command sub @() in expression mode
details
2pass FAIL split command sub @() in command mode
details
3pass FAIL @() decodes J8 Lines
details
4pass FAIL for loop using @(seq $n)
details
5pass pass @() can't start in the middle of the word
6pass FAIL @() can't have any tokens after it
details
9 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp1 split command sub @() in expression mode

[osh-cpp stdout] Expected '1\n2\n3\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  var x = @(seq 3)
                 ^
[ stdin ]:3: Invalid word while parsing command list
osh-cpp2 split command sub @() in command mode

[osh-cpp stdout] Expected "1\n2\n3\n--\n['a', 'b', '', 'c']\n--\n1\n2\n3\n--\n['axbxxc']\n" Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  write -- @(seq 3)
                  ^
[ stdin ]:2: Invalid word while parsing command list
osh-cpp3 @() decodes J8 Lines

[osh-cpp stdout] Expected '[\n "unquoted \\"\\" word",\n " json \xce\xbc ",\n " json j prefix \xce\xbc ",\n " j8 u \xce\xbc ",\n " j8 b \xce\xbc ",\n " j8 no prefix \xce\xbc "\n]\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  )
  ^
[ stdin ]:13: Unexpected EOF while parsing command
osh-cpp4 for loop using @(seq $n)

[osh-cpp stdout] Expected "[1]\n[2]\n[3]\n['z']\n['z']\n['z']\n" Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  for x in @(seq 3) {
                  ^
[ stdin ]:3: Invalid word while parsing command list
osh-cpp6 @() can't have any tokens after it

[osh-cpp stdout] Expected '1\n2\n' Got ''

stdout:
stderr: 
  write -- @(seq 2)
                  ^
[ stdin ]:3: Invalid word while parsing command list