Results for var-op-strip.test.sh

statusbashmkshkshtoyshsushbrushosh
pass 29202512212429
ok 0200000
N-I 0500000
BUG 0200000
FAIL 00417850
total29292929292929
casebashmkshkshtoyshsushbrushoshdescription
0pass pass pass pass pass pass pass Remove const suffix
1pass pass pass pass pass pass pass Remove const prefix
2pass N-I FAIL FAIL pass pass pass Remove const suffix is vectorized on user array
detailsdetailsdetails
3pass N-I FAIL FAIL pass pass pass Remove const suffix is vectorized on $@ array
detailsdetailsdetails
4pass pass pass pass pass pass pass Remove const suffix from undefined
5pass pass pass pass pass pass pass Remove shortest glob suffix
6pass pass pass FAIL pass pass pass Remove longest glob suffix
details
7pass pass pass pass pass pass pass Remove shortest glob prefix
8pass pass pass pass pass pass pass Remove longest glob prefix
9pass N-I pass FAIL pass pass pass Strip char class
detailsdetails
10pass BUG pass FAIL pass FAIL pass Strip unicode prefix
detailsdetailsdetails
11pass pass pass FAIL pass pass pass Bug fix: Test that you can remove everything with glob
details
12pass pass pass pass pass pass pass Test that you can remove everything with const
13pass N-I FAIL FAIL pass pass pass Prepend using replacement of #
detailsdetailsdetails
14pass N-I FAIL FAIL pass pass pass Append using replacement of %
detailsdetailsdetails
15pass ok pass FAIL pass pass pass strip unquoted and quoted [
detailsdetails
16pass ok pass FAIL FAIL pass pass strip unquoted and quoted []
detailsdetailsdetails
17pass pass pass pass FAIL pass pass strip unquoted and quoted ?
details
18pass pass pass FAIL FAIL pass pass strip unquoted and quoted [a]
detailsdetails
19pass pass pass FAIL pass FAIL pass Nested % and # operators (bug reported by Crestwave)
detailsdetails
20pass pass pass FAIL FAIL FAIL pass strip * (bug regression)
detailsdetailsdetails
21pass pass pass FAIL pass pass pass strip ?
details
22pass pass pass pass pass pass pass strip all
23pass pass pass pass FAIL pass pass strip none
details
24pass BUG pass FAIL pass FAIL pass strip all unicode
detailsdetailsdetails
25pass pass pass pass FAIL FAIL pass strip none unicode
detailsdetails
26pass pass pass FAIL FAIL pass pass Strip Right Brace (#702)
detailsdetails
27pass pass pass pass FAIL pass pass \(\) in pattern (regression)
details
28pass pass pass FAIL pass pass pass extglob in pattern
details
160 passed, 2 OK, 5 not implemented, 2 BUG, 34 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

mksh2 Remove const suffix is vectorized on user array

stdout:
stderr: 
mksh: <stdin>[2]: ${a[@]%a}: bad substitution
ksh2 Remove const suffix is vectorized on user array

[ksh stdout] Expected "['1', '2', '3']\n", got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${a[@]%a}: bad substitution
toysh2 Remove const suffix is vectorized on user array

[toysh stdout] Expected "['1', '2', '3']\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: 1a
mksh3 Remove const suffix is vectorized on $@ array

stdout:
stderr: 
mksh: <stdin>[2]: ${@%a}: bad substitution
ksh3 Remove const suffix is vectorized on $@ array

[ksh stdout] Expected "['1', '2', '3']\n", got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${@%a}: bad substitution
toysh3 Remove const suffix is vectorized on $@ array

[toysh stdout] Expected "['1', '2', '3']\n", got '[]\n'

stdout:
[]
stderr:
set: bad --
toysh6 Remove longest glob suffix

[toysh stdout] Expected 'aabb\n', got 'aabbccdd\n'

stdout:
aabbccdd
stderr:
mksh9 Strip char class

stdout:
abc
stderr:
toysh9 Strip char class

[toysh stdout] Expected 'ab\n', got 'abc\n'

stdout:
abc
stderr:
mksh10 Strip unicode prefix

stdout:
'\xbc-\n\xbc-\n-\xce\n-\xce\n'
stderr:
toysh10 Strip unicode prefix

[toysh stdout] Expected '-\n-\n-\n-\n', got '-\n-\n-\xce\n-\n'

stdout:
'-\n-\n-\xce\n-\n'
stderr:
brush10 Strip unicode prefix

[brush stdout] Expected '-\n-\n-\n-\n', got ''
[brush status] Expected 0, got -6

stdout:
stderr: 
Well, this is embarrassing.

brush had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-6e99c116-e826-4e57-b478-87f4624513d7.toml". Submit an issue or email with the subject of "brush Crash Report" and include the report as an attachment.


To submit the crash report:

please post a GitHub issue at https://github.com/reubeno/brush/issues/new

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!
toysh11 Bug fix: Test that you can remove everything with glob

[toysh stdout] Expected "['', '--x-', '-x--', '']\n", got "['--x-', '--x-', '-x--', '']\n"

stdout:
['--x-', '--x-', '-x--', '']
stderr:
mksh13 Prepend using replacement of #

stdout:
stderr: 
mksh: <stdin>[2]: ${array[@]/#/prefix-}: bad substitution
ksh13 Prepend using replacement of #

[ksh stdout] Expected "['prefix-aa', 'prefix-bb', 'prefix-']\n", got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${array[@]/#/prefix-}: bad substitution
toysh13 Prepend using replacement of #

[toysh stdout] Expected "['prefix-aa', 'prefix-bb', 'prefix-']\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: aa
mksh14 Append using replacement of %

stdout:
stderr: 
mksh: <stdin>[2]: ${array[@]/%/-suffix}: bad substitution
ksh14 Append using replacement of %

[ksh stdout] Expected "['aa-suffix', 'bb-suffix', '-suffix']\n", got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: ${array[@]/%/-suffix}: bad substitution
toysh14 Append using replacement of %

[toysh stdout] Expected "['aa-suffix', 'bb-suffix', '-suffix']\n", got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: aa
mksh15 strip unquoted and quoted [

stdout:
[foo]
foo]
[foo]
foo]
stderr:
toysh15 strip unquoted and quoted [

[toysh stdout] Expected 'foo]\nfoo]\nfoo]\nfoo]\n', got 'foo]\n[foo]\nfoo]\n[foo]\n'

stdout:
foo]
[foo]
foo]
[foo]
stderr:
mksh16 strip unquoted and quoted []

stdout:
[]foo[]
foo[]
[]foo[]
foo[]
stderr:
toysh16 strip unquoted and quoted []

[toysh stdout] Expected 'foo[]\nfoo[]\nfoo[]\nfoo[]\n', got 'foo[]\n[]foo[]\nfoo[]\n[]foo[]\n'

stdout:
foo[]
[]foo[]
foo[]
[]foo[]
stderr:
sush16 strip unquoted and quoted []

[sush stdout] Expected 'foo[]\nfoo[]\nfoo[]\nfoo[]\n', got '[]foo[]\n[]foo[]\n[]foo[]\n[]foo[]\n'

stdout:
[]foo[]
[]foo[]
[]foo[]
[]foo[]
stderr:
sush17 strip unquoted and quoted ?

[sush stdout] Expected 'foo]\n[foo]\nfoo]\n[foo]\n', got 'foo]\nfoo]\nfoo]\nfoo]\n'

stdout:
foo]
foo]
foo]
foo]
stderr:
toysh18 strip unquoted and quoted [a]

[toysh stdout] Expected '[a]foo[]\nfoo[]\n[a]foo[]\nfoo[]\n', got 'foo[]\n[a]foo[]\nfoo[]\n[a]foo[]\n'

stdout:
foo[]
[a]foo[]
foo[]
[a]foo[]
stderr:
sush18 strip unquoted and quoted [a]

[sush stdout] Expected '[a]foo[]\nfoo[]\n[a]foo[]\nfoo[]\n', got '[a]foo[]\n[a]foo[]\n[a]foo[]\n[a]foo[]\n'

stdout:
[a]foo[]
[a]foo[]
[a]foo[]
[a]foo[]
stderr:
toysh19 Nested % and # operators (bug reported by Crestwave)

[toysh stdout] Expected "['']\n['\\n']\n['\\n']\n['']\n['a']\n['a']\n", got "['']\n['\\n']\n['\\n}']\n['']\n['a']\n['a}']\n"

stdout:
['']
['\n']
['\n}']
['']
['a']
['a}']
stderr:
brush19 Nested % and # operators (bug reported by Crestwave)

[brush stdout] Expected "['']\n['\\n']\n['\\n']\n['']\n['a']\n['a']\n", got "['']\n['']\n['']\n['']\n['a']\n['a']\n"

stdout:
['']
['']
['']
['']
['a']
['a']
stderr:
toysh20 strip * (bug regression)

[toysh stdout] Expected "['abc']\n['']\n['abc']\n['']\n", got "['abc']\n['']\n['ab']\n['abc']\n"

stdout:
['abc']
['']
['ab']
['abc']
stderr:
sush20 strip * (bug regression)

[sush stdout] Expected "['abc']\n['']\n['abc']\n['']\n", got "['abc']\n['']\n['ab']\n['']\n"

stdout:
['abc']
['']
['ab']
['']
stderr:
brush20 strip * (bug regression)

[brush stdout] Expected "['abc']\n['']\n['abc']\n['']\n", got "['bc']\n['']\n['ab']\n['']\n"

stdout:
['bc']
['']
['ab']
['']
stderr:
toysh21 strip ?

[toysh stdout] Expected "['bc']\n['bc']\n['ab']\n['ab']\n", got "['bc']\n['bc']\n['abc']\n['ab']\n"

stdout:
['bc']
['bc']
['abc']
['ab']
stderr:
sush23 strip none

[sush stdout] Expected "['abc']\n['abc']\n['abc']\n['abc']\n", got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: evaluation error
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: evaluation error
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: evaluation error
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: evaluation error
mksh24 strip all unicode

stdout:
μabcμ
μabcμ
μabcμ
μabcμ
stderr:
toysh24 strip all unicode

[toysh stdout] Expected '\n\n\n\n', got '\n\n\xce\n\n'

stdout:
'\n\n\xce\n\n'
stderr:
brush24 strip all unicode

[brush stdout] Expected '\n\n\n\n', got ''
[brush status] Expected 0, got -6

stdout:
stderr: 
Well, this is embarrassing.

brush had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-37ddf5b1-833f-4a56-a36f-160bcb856089.toml". Submit an issue or email with the subject of "brush Crash Report" and include the report as an attachment.


To submit the crash report:

please post a GitHub issue at https://github.com/reubeno/brush/issues/new

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!
sush25 strip none unicode

[sush stdout] Expected "['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n" Got ''
[sush status] Expected 0, got 1

stdout:
stderr: 
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: evaluation error
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: evaluation error
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: evaluation error
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: evaluation error
brush25 strip none unicode

[brush stdout] Expected "['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n" Got ''
[brush status] Expected 0, got -6

stdout:
stderr: 
Well, this is embarrassing.

brush had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-09494a2b-08df-4bf1-b3f9-7c0df513dd0d.toml". Submit an issue or email with the subject of "brush Crash Report" and include the report as an attachment.


To submit the crash report:

please post a GitHub issue at https://github.com/reubeno/brush/issues/new

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!
toysh26 Strip Right Brace (#702)

[toysh stdout] Expected '1 $foo\n2 \n10 }}\n11 \n12 \n13 \n', got "1 \n2 \n10 }}\n11 \n12 }'}\n13 }}\n"

stdout:
1 
2 
10 }}
11 
12 }'}
13 }}
stderr:
sush26 Strip Right Brace (#702)

[sush stdout] Expected '1 $foo\n2 \n10 }}\n11 \n12 \n13 \n', got '2 \n11 \n12 \n13 \n'

stdout:
2 
11 
12 
13 
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 2: evaluation error
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 6: evaluation error
sush27 \(\) in pattern (regression)

[sush stdout] Expected '1 foo\n2\n3\n4\n', got '1 foo()\n2 foo()\n3 foo()\n4 foo()\n'

stdout:
1 foo()
2 foo()
3 foo()
4 foo()
stderr:
toysh28 extglob in pattern

[toysh stdout] Expected '1 foo\n2\n3\n4\n', got ''
[toysh status] Expected 0, got 2

stdout:
stderr: 
main: line 1: sh: syntax error: (