Results for ysh-regex.test.sh

statusosh
FAIL 34
total34
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 Matching escaped tab character
details
15FAIL Match unicode char
details
16FAIL Match non-ASCII byte denoted using $'\xff' (TODO: LANG=C)
details
17FAIL Match non-ASCII byte denoted using \xff
details
18FAIL ERE can express Unicode escapes that are in the ASCII range
details
19FAIL ERE can't express higher Unicode escapes
details
20FAIL non-ASCII bytes must be singleton terms, e.g. '\x7f\xff' is disallowed
details
21FAIL Matching escaped tab character
details
22FAIL Repeated String Literal With Single Char
details
23FAIL Error when unparenthesized string of more than one character is repeated
details
24FAIL Instead of $'foo\\bar' use 'foo' \\ 'bar'
details
25FAIL Negation of Character Class ![a-z]
details
26FAIL Posix and Perl class in class literals
details
27FAIL [!d] can't be negated because it's a literal character
details
28FAIL [!digit] can't be negated in POSIX ERE (but yes in Perl)
details
29FAIL Operator chars in char classes (bash-like)
details
30FAIL Operator chars in char classes (eggex)
details
31FAIL Matching ] and \ and ' and " in character classes
details
32FAIL Matching literal hyphen in character classes
details
33FAIL Char class special: ^ - ] \
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 34 failed, 0 timeouts, 0 cases skipped
34 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh7 Range with escaped characters

[osh stdout] Expected ' 5b 00 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh14 Matching escaped tab character

[osh stdout] Expected u'pat=(a[\t]b)\naa\tbb\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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh15 Match unicode char

[osh stdout] Expected 'yes\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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh16 Match non-ASCII byte denoted using $'\xff' (TODO: LANG=C)

[osh stdout] Expected ' 5b ff 5d 0a\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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh17 Match non-ASCII byte denoted using \xff

[osh stdout] Expected ' 5b ff 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh18 ERE can express Unicode escapes that are in the ASCII range

[osh stdout] Expected ' 5b 7f 5d 0a\nyes\nno\nequal\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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh19 ERE can't express higher Unicode escapes

[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh20 non-ASCII bytes must be singleton terms, e.g. '\x7f\xff' is disallowed

[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh21 Matching escaped tab character

[osh stdout] Expected u'pat=(a[\t]b)\naa\tbb\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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh22 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh23 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh24 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh25 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh26 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh27 [!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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh28 [!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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh29 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh30 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh31 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh32 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh33 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_