Results for regex.test.sh

casebashzshoshosh_ALTosh-byterundescription
0pass N-I pass pass FAIL BASH_REMATCH
detailsdetails
1pass pass pass pass FAIL Match is unanchored at both ends
details
2pass pass pass pass pass Failed match
3pass pass pass pass FAIL Regex quoted with \ -- preferred in bash
details
4pass ok pass pass pass Regex quoted with single quotes
details
5pass ok pass pass pass Regex quoted with double quotes
details
6pass pass pass pass FAIL Fix single quotes by storing in variable
details
7pass pass pass pass FAIL Fix single quotes by storing in variable
details
8pass ok pass pass pass Double quoting pat variable -- again bash doesn't like it.
details
9pass pass pass pass FAIL Mixing quoted and unquoted parts
details
10pass ok pass pass FAIL Regex with == and not =~ is parse error, different lexer mode required
detailsdetails
11pass pass pass pass FAIL Omitting ( )
details
12pass ok pass pass FAIL Malformed regex
detailsdetails
13pass pass FAIL FAIL FAIL Regex with char class containing space
detailsdetailsdetails
14pass N-I FAIL FAIL FAIL Operators and space lose meaning inside ()
detailsdetailsdetailsdetails
15pass N-I pass pass FAIL Regex with |
detailsdetails
16pass ok pass pass FAIL Regex to match literal brackets []
detailsdetails
17pass BUG pass pass FAIL Regex to match literals . ^ $ etc.
detailsdetails
18BUG BUG pass pass FAIL Unquoted { is a regex parse error
detailsdetailsdetails
19BUG pass pass pass pass Fatal error inside [[ =~ ]]
details
20pass N-I pass pass FAIL Quoted {
detailsdetails
21pass BUG pass pass FAIL Escaped {
detailsdetails
22pass BUG pass pass FAIL Escaped { stored in variable first
detailsdetails
23pass pass pass pass FAIL regex with ?
details

81 passed, 6 ok, 4 known unimplemented, 6 known bugs, 2 failed, 0 skipped

Details on runs that didn't PASS

zsh0 BASH_REMATCH

stdout:
['']
stderr:
osh-byterun0 BASH_REMATCH

[osh-byterun stdout] Expected "['foo123', 'foo', '123']\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun1 Match is unanchored at both ends

[osh-byterun stdout] Expected 'true\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun3 Regex quoted with \ -- preferred in bash

[osh-byterun stdout] Expected 'true\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh4 Regex quoted with single quotes

stdout:
true
stderr:
zsh5 Regex quoted with double quotes

stdout:
true
stderr:
osh-byterun6 Fix single quotes by storing in variable

[osh-byterun stdout] Expected 'true\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun7 Fix single quotes by storing in variable

[osh-byterun stdout] Expected 'true\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh8 Double quoting pat variable -- again bash doesn't like it.

stdout:
true
stderr:
osh-byterun9 Mixing quoted and unquoted parts

[osh-byterun stdout] Expected 'true\ntrue\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh10 Regex with == and not =~ is parse error, different lexer mode required

stdout:
stderr: 
osh-byterun10 Regex with == and not =~ is parse error, different lexer mode required

[osh-byterun status] Expected 2, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun11 Omitting ( )

[osh-byterun stdout] Expected 'true\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh12 Malformed regex

stdout:
stderr: 
zsh: parse error near `)'
osh-byterun12 Malformed regex

[osh-byterun status] Expected 2, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh13 Regex with char class containing space

[osh stdout] Expected 'true\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
Line 1 of '<stdin>'
  [[ 'ba ba ' =~ ([a b]+) ]] && echo true
                     ^
Expected ]]
osh_ALT13 Regex with char class containing space

[osh_ALT stdout] Expected 'true\n', got ''
[osh_ALT status] Expected 0, got 2

stdout:
stderr: 
Line 1 of '<stdin>'
  [[ 'ba ba ' =~ ([a b]+) ]] && echo true
                     ^
Expected ]]
osh-byterun13 Regex with char class containing space

[osh-byterun stdout] Expected 'true\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh14 Operators and space lose meaning inside ()

stdout:
stderr: 
zsh: parse error near `<'
osh14 Operators and space lose meaning inside ()

[osh stdout] Expected 'true\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
Line 1 of '<stdin>'
  [[ '< >' =~ (< >) ]] && echo true
                 ^
Expected ]]
osh_ALT14 Operators and space lose meaning inside ()

[osh_ALT stdout] Expected 'true\n', got ''
[osh_ALT status] Expected 0, got 2

stdout:
stderr: 
Line 1 of '<stdin>'
  [[ '< >' =~ (< >) ]] && echo true
                 ^
Expected ]]
osh-byterun14 Operators and space lose meaning inside ()

[osh-byterun stdout] Expected 'true\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh15 Regex with |

stdout:
stderr: 
zsh: parse error near `|'
osh-byterun15 Regex with |

[osh-byterun stdout] Expected 'true\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh16 Regex to match literal brackets []

stdout:
true
stderr:
zsh: failed to compile regex: Unmatched [ or [^
osh-byterun16 Regex to match literal brackets []

[osh-byterun stdout] Expected 'true\ntrue\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh17 Regex to match literals . ^ $ etc.

stdout:
true
false
false
false
stderr:
zsh: failed to compile regex: Invalid preceding regular expression
zsh: failed to compile regex: Invalid preceding regular expression
zsh: failed to compile regex: Invalid preceding regular expression
zsh: failed to compile regex: Invalid preceding regular expression
osh-byterun17 Regex to match literals . ^ $ etc.

[osh-byterun stdout] Expected 'false\ntrue\nfalse\ntrue\nfalse\ntrue\nfalse\ntrue\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
bash18 Unquoted { is a regex parse error

stdout:
status=2
stderr:
zsh18 Unquoted { is a regex parse error

stdout:
status=1
stderr:
zsh: failed to compile regex: Invalid preceding regular expression
osh-byterun18 Unquoted { is a regex parse error

[osh-byterun status] Expected 2, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
bash19 Fatal error inside [[ =~ ]]

stdout:
status=1
stderr:
_tmp/spec-bin/bash: line 1: 1 / 0 : division by 0 (error token is "0 ")
zsh20 Quoted {

stdout:
status=1
stderr:
zsh: failed to compile regex: Invalid preceding regular expression
osh-byterun20 Quoted {

[osh-byterun stdout] Expected 'true\nstatus=0\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh21 Escaped {

stdout:
stderr: 
zsh: failed to compile regex: Invalid preceding regular expression
osh-byterun21 Escaped {

[osh-byterun stdout] Expected "['$PA', '$', 'PA']\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
zsh22 Escaped { stored in variable first

stdout:
['']
stderr:
osh-byterun22 Escaped { stored in variable first

[osh-byterun stdout] Expected "['$PA', '$', 'PA']\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun23 regex with ?

[osh-byterun stdout] Expected 'true\ntrue\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend