Results for var-op-strip.test.sh

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

Details on runs that didn't PASS

dash2 Remove const suffix is vectorized on user array

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash2 Remove const suffix is vectorized on user array

stdout:
stderr: 
ash: syntax error: unexpected "("
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
dash3 Remove const suffix is vectorized on $@ array

stdout:
['1a', '2a', '3']
stderr:
ash3 Remove const suffix is vectorized on $@ array

stdout:
['1a', '2a', '3']
stderr:
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:
dash10 Strip unicode prefix

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

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

stdout:



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-ec83e126-5557-4c11-9a90-785e9b6a442d.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:
dash13 Prepend using replacement of #

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash13 Prepend using replacement of #

stdout:
stderr: 
ash: syntax error: unexpected "("
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
dash14 Append using replacement of %

stdout:
stderr: 
dash: 1: Syntax error: "(" unexpected
ash14 Append using replacement of %

stdout:
stderr: 
ash: syntax error: unexpected "("
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
zsh15 strip unquoted and quoted [

stdout:
stderr: 
zsh: bad pattern: [
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:
zsh16 strip unquoted and quoted []

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:
dash19 Nested % and # operators (bug reported by Crestwave)

stdout:
['\\n']
['$\\n']
['$']
['']
['a']
['a']
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:
zsh20 strip * (bug regression)

stdout:
['abc']
['']
['ab']
['']
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
dash24 strip all unicode

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

stdout:
μabcμ
μabcμ
μabcμ
μabcμ
stderr:
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-c24c4fa8-9511-42c7-bc25-2481fdacc3db.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-b29e0ed3-fb2d-4b21-b587-c92514ea472c.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!
zsh26 Strip Right Brace (#702)

stdout:
1 $foo
2 
10 }}
11 
12 }'}
13 
stderr:
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:
dash28 extglob in pattern

stdout:
stderr: 
ash28 extglob in pattern

stdout:
stderr: 
zsh28 extglob in pattern

stdout:
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: (