Results for ysh-regex.test.sh

statusosh
FAIL 29
total29
caseoshdescription
0FAIL /^.$/
details
1FAIL /.+/
details
2FAIL Repeat {1,3} etc.
details
3FAIL d+ digit+ !d+ !digit+
details
4FAIL Alternation and sequence
details
5FAIL Char Class Ranges
details
6FAIL Char Class Set
details
7FAIL Range with escaped characters
details
8FAIL Group ()
details
9FAIL Capture is acceptable as a group
details
10FAIL literal ''
details
11FAIL Single quotes and splicing (do what "foo $x ${x}" used to)
details
12FAIL @splice
details
13FAIL splice with capital letters
details
14FAIL Repeated String Literal With Single Char
details
15FAIL Error when unparenthesized string of more than one character is repeated
details
16FAIL Instead of $'foo\\bar' use 'foo' \\ 'bar'
details
17FAIL Negation of Character Class ![a-z]
details
18FAIL Posix and Perl class in class literals
details
19FAIL [!d] can't be negated because it's a literal character
details
20FAIL [!digit] can't be negated in POSIX ERE (but yes in Perl)
details
21FAIL Operator chars in char classes (bash-like)
details
22FAIL Operator chars in char classes (eggex)
details
23FAIL Matching ] and \ and ' and " in character classes
details
24FAIL Matching literal hyphen in character classes
details
25FAIL Char class special: ^ - ] \
details
26FAIL character class with digit [\\0] should not crash (issue #2380)
details
27FAIL Multiple digits like [25] are invalid
details
28FAIL Negation of digit not allowed
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 29 failed, 0 timeouts, 0 cases skipped
29 failed under osh

Details on runs that didn't PASS

osh0 /^.$/

[osh stdout] Expected 'pat=^.$\npat=^.$\nno\nyes\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh1 /.+/

[osh stdout] Expected '.+\nyes\nno\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh2 Repeat {1,3} etc.

[osh stdout] Expected '[[:digit:]]{2}\n[[:digit:]]{1,3}\n[[:digit:]]{1,}\n[[:digit:]]{,3}\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh3 d+ digit+ !d+ !digit+

[osh stdout] Expected '[[:digit:]]+\nyes\nno\n[[:digit:]]+\n[^[:digit:]]+\n[^[:digit:]]+\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh4 Alternation and sequence

[osh stdout] Expected '[[:space:]][[:digit:]]+|[[:alpha:][:digit:]_]*\n[[:space:]][[:digit:]]+|[[:alpha:][:digit:]_]*\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh5 Char Class Ranges

[osh stdout] Expected '[0-9a-f]+\n[0-9a-f]+\nyes\nno\nno\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh6 Char Class Set

[osh stdout] Expected '[abc]+\nyes\nno\nno\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh7 Range with escaped characters

[osh stdout] Expected ' 5b 01 2d 0f 5d 0a\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh8 Group ()

[osh stdout] Expected '(^[[:space:]]|[[:digit:]][[:digit:]])\nyes\nyes\nno\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh9 Capture is acceptable as a group

[osh stdout] Expected '(^[[:space:]]|[[:digit:]][[:digit:]])\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh10 literal ''

[osh stdout] Expected 'abcdef\nno\nyes\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh11 Single quotes and splicing (do what "foo $x ${x}" used to)

[osh stdout] Expected 'xxabcxy\nno\nyes\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh12 @splice

[osh stdout] Expected '[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+\nyes\nno\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh13 splice with capital letters

[osh stdout] Expected '[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+\nyes\nno\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh14 Repeated String Literal With Single Char

[osh stdout] Expected '^f+$\n^(f)+$\nyes\nno\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh15 Error when unparenthesized string of more than one character is repeated

[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh16 Instead of $'foo\\bar' use 'foo' \\ 'bar'

[osh stdout] Expected 'foo\\\\bar\nyes\nno\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh17 Negation of Character Class ![a-z]

[osh stdout] Expected '[^a-z]\nyes\nno\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh18 Posix and Perl class in class literals

[osh stdout] Expected '[[:space:]z]\n[[:digit:]z]\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh19 [!d] can't be negated because it's a literal character

[osh status] Expected 2 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh20 [!digit] can't be negated in POSIX ERE (but yes in Perl)

[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh21 Operator chars in char classes (bash-like)

[osh stdout] Expected 'hyphen\nbackslash\nright bracket\nleft bracket\nperiod\ncaret\nno way to have [^]\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh22 Operator chars in char classes (eggex)

[osh stdout] Expected 'hyphen\nbackslash\nright bracket\nleft bracket\nperiod\ncaret\nno way to have [^]\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh23 Matching ] and \ and ' and " in character classes

[osh stdout] Expected 'pat=[]\'"\\\\]\nbackslash \\\nrbracket ]\nsq \'\ndq ""\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh24 Matching literal hyphen in character classes

[osh stdout] Expected 'pat=[ab-]\nc-d\nab\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh25 Char class special: ^ - ] \

[osh stdout] Expected 'caret=[x^]\ncaret2=[x^]\ncaret3=[x^]\nmatch x\nmatch ^\n---\nhyphen=[ab-]\nhyphen2=[ab-]\nmatch -\nmatch a\n---\nrbracket=[][]\nrbracket2=[][]\nmatch [\nmatch ]\n---\nbackslash=[xn\\\\]\nbackslash2=[xn\\\\]\nbackslash3=[xn\\\\]\nmatch x\nmatch n\nmatch backslash\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh26 character class with digit [\\0] should not crash (issue #2380)

[osh stdout] Expected 'pattern: [0\\\\]\n(Bool) true\n(Bool) false\n(Bool) true\n---\n[0-9]\n(Bool) true\n(Bool) false\n' Got ''
[osh status] Expected 0 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh27 Multiple digits like [25] are invalid

[osh stdout] Expected '[25]\n[25]\n' Got ''
[osh status] Expected 2 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang
osh28 Negation of digit not allowed

[osh status] Expected 2 Got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from oil_lang import path_stat
ImportError: No module named oil_lang