Results for blog1.test.sh

casedashbashmkshzshoshdescription
0pass pass pass pass pass ${##}
1pass pass pass pass FAIL ${###}
details
2pass pass pass pass FAIL ${####}
details
3pass pass pass pass FAIL ${##2}
details
4pass pass BUG pass FAIL ${###2}
detailsdetails
5pass pass pass pass FAIL ${1####}
details
6pass pass pass pass FAIL ${1#'###'}
details
7ok N-I N-I ok pass ${#1#'###'}
detailsdetailsdetailsdetails

29 passed, 2 ok, 2 known unimplemented, 1 known bugs, 6 failed, 0 skipped

Details on runs that didn't PASS

osh1 ${###}

[osh stdout] Expected b'25\n', got b"<core.base.ParseError object at 0x7fe96b57a748>\nLine 2 of '<stdin>'\n echo ${###}\n ^\n---\n<core.base.ParseError object at 0x7fe96b57a5f8>\nLine 2 of '<stdin>'\n echo ${###}\n ^\n---\n<core.base.ParseError object at 0x7fe96b57a710>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n"

stdout:
<core.base.ParseError object at 0x7fe96b57a748>
Line 2 of '<stdin>'
  echo ${###}
           ^
---
<core.base.ParseError object at 0x7fe96b57a5f8>
Line 2 of '<stdin>'
  echo ${###}
           ^
---
<core.base.ParseError object at 0x7fe96b57a710>
Line 0 of '<unknown>'
  <token had no position info>
NO COL
---
stderr:
Expected } after length expression, got (token id:VOp1_Pound val:"#" span_id:15)
Error reading command word
Error parsing AndOr in ParseCommandTerm
osh2 ${####}

[osh stdout] Expected b'25\n', got b"<core.base.ParseError object at 0x7f1ee3b65780>\nLine 2 of '<stdin>'\n echo ${####}\n ^~\n---\n<core.base.ParseError object at 0x7f1ee3b655f8>\nLine 2 of '<stdin>'\n echo ${####}\n ^~\n---\n<core.base.ParseError object at 0x7f1ee3b65748>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n"

stdout:
<core.base.ParseError object at 0x7f1ee3b65780>
Line 2 of '<stdin>'
  echo ${####}
           ^~
---
<core.base.ParseError object at 0x7f1ee3b655f8>
Line 2 of '<stdin>'
  echo ${####}
           ^~
---
<core.base.ParseError object at 0x7f1ee3b65748>
Line 0 of '<unknown>'
  <token had no position info>
NO COL
---
stderr:
Expected } after length expression, got (token id:VOp1_DPound val:"##" span_id:15)
Error reading command word
Error parsing AndOr in ParseCommandTerm
osh3 ${##2}

[osh stdout] Expected b'5\n', got b"<core.base.ParseError object at 0x7ff3ddf87748>\nLine 2 of '<stdin>'\n echo ${##2}\n ^\n---\n<core.base.ParseError object at 0x7ff3ddf875f8>\nLine 2 of '<stdin>'\n echo ${##2}\n ^\n---\n<core.base.ParseError object at 0x7ff3ddf87710>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n"

stdout:
<core.base.ParseError object at 0x7ff3ddf87748>
Line 2 of '<stdin>'
  echo ${##2}
           ^
---
<core.base.ParseError object at 0x7ff3ddf875f8>
Line 2 of '<stdin>'
  echo ${##2}
           ^
---
<core.base.ParseError object at 0x7ff3ddf87710>
Line 0 of '<unknown>'
  <token had no position info>
NO COL
---
stderr:
Expected } after length expression, got (token id:Unknown_Tok val:2 span_id:15)
Error reading command word
Error parsing AndOr in ParseCommandTerm
mksh4 ${###2}

stdout:
25
stderr:
osh4 ${###2}

[osh stdout] Expected b'5\n', got b"<core.base.ParseError object at 0x7f843f8cc748>\nLine 2 of '<stdin>'\n echo ${###2}\n ^\n---\n<core.base.ParseError object at 0x7f843f8cc5f8>\nLine 2 of '<stdin>'\n echo ${###2}\n ^\n---\n<core.base.ParseError object at 0x7f843f8cc710>\nLine 0 of '<unknown>'\n <token had no position info>\nNO COL\n---\n"

stdout:
<core.base.ParseError object at 0x7f843f8cc748>
Line 2 of '<stdin>'
  echo ${###2}
           ^
---
<core.base.ParseError object at 0x7f843f8cc5f8>
Line 2 of '<stdin>'
  echo ${###2}
           ^
---
<core.base.ParseError object at 0x7f843f8cc710>
Line 0 of '<unknown>'
  <token had no position info>
NO COL
---
stderr:
Expected } after length expression, got (token id:VOp1_Pound val:"#" span_id:15)
Error reading command word
Error parsing AndOr in ParseCommandTerm
osh5 ${1####}

[osh stdout] Expected b'##\n', got b'UNDEFINED\n\n'

stdout:
UNDEFINED

stderr:
osh6 ${1#'###'}

[osh stdout] Expected b'#\n', got b'UNDEFINED\n\n'

stdout:
UNDEFINED

stderr:
dash7 ${#1#'###'}

stdout:
4
stderr:
bash7 ${#1#'###'}

stdout:
stderr: 
/bin/bash: line 2: ${#1#'###'}: bad substitution
mksh7 ${#1#'###'}

stdout:
stderr: 
/bin/mksh: <stdin>[2]: ${#1#"###"}: bad substitution
zsh7 ${#1#'###'}

stdout:
1
stderr: