var-op-strip () { sh-spec spec/var-op-strip.test.sh ${REF_SHELLS[@]} $ZSH $BUSYBOX_ASH $OSH_LIST "$@" } var-op-strip: spec test case results

Results for var-op-strip.test.sh

statusdashbashmkshzshashosh
pass 212920232229
ok 002100
N-I 605150
BUG 202420
total292929292929
casedashbashmkshzshashoshdescription
0pass pass pass pass pass pass Remove const suffix
1pass pass pass pass pass pass Remove const prefix
2N-I pass N-I pass N-I pass Remove const suffix is vectorized on user array
detailsdetailsdetails
3N-I pass N-I pass N-I pass Remove const suffix is vectorized on $@ array
detailsdetailsdetails
4pass pass pass pass pass pass Remove const suffix from undefined
5pass pass pass pass pass pass Remove shortest glob suffix
6pass pass pass pass pass pass Remove longest glob suffix
7pass pass pass pass pass pass Remove shortest glob prefix
8pass pass pass pass pass pass Remove longest glob prefix
9pass pass N-I pass pass pass Strip char class
details
10BUG pass BUG BUG BUG pass Strip unicode prefix
detailsdetailsdetailsdetails
11pass pass pass pass pass pass Bug fix: Test that you can remove everything with glob
12pass pass pass pass pass pass Test that you can remove everything with const
13N-I pass N-I pass N-I pass Prepend using replacement of #
detailsdetailsdetails
14N-I pass N-I pass N-I pass Append using replacement of %
detailsdetailsdetails
15pass pass ok BUG pass pass strip unquoted and quoted [
detailsdetails
16pass pass ok ok pass pass strip unquoted and quoted []
detailsdetails
17pass pass pass pass pass pass strip unquoted and quoted ?
18pass pass pass pass pass pass strip unquoted and quoted [a]
19N-I pass pass pass pass pass Nested % and # operators (bug reported by Crestwave)
details
20pass pass pass BUG pass pass strip * (bug regression)
details
21pass pass pass pass pass pass strip ?
22pass pass pass pass pass pass strip all
23pass pass pass pass pass pass strip none
24BUG pass BUG pass BUG pass strip all unicode
detailsdetailsdetails
25pass pass pass pass pass pass strip none unicode
26pass pass pass BUG pass pass Strip Right Brace (#702)
details
27pass pass pass pass pass pass \(\) in pattern (regression)
28N-I pass pass N-I N-I pass extglob in pattern
detailsdetailsdetails
144 passed, 3 OK, 17 not implemented, 10 BUG, 0 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
mksh2 Remove const suffix is vectorized on user array

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

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

stdout:
['1a', '2a', '3']
stderr:
mksh9 Strip char class

stdout:
abc
stderr:
dash10 Strip unicode prefix

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

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

stdout:



stderr:
ash10 Strip unicode prefix

stdout:
'\xbc-\n\xbc-\n-\xce\n-\xce\n'
stderr:
dash13 Prepend using replacement of #

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

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

stdout:
stderr: 
ash: syntax error: unexpected "("
dash14 Append using replacement of %

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

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

stdout:
stderr: 
ash: syntax error: unexpected "("
mksh15 strip unquoted and quoted [

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

stdout:
stderr: 
zsh: bad pattern: [
mksh16 strip unquoted and quoted []

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

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

stdout:
['\\n']
['$\\n']
['$']
['']
['a']
['a']
stderr:
zsh20 strip * (bug regression)

stdout:
['abc']
['']
['ab']
['']
stderr:
dash24 strip all unicode

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

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

stdout:
μabcμ
μabcμ
μabcμ
μabcμ
stderr:
zsh26 Strip Right Brace (#702)

stdout:
1 $foo
2 
10 }}
11 
12 }'}
13 
stderr:
dash28 extglob in pattern

stdout:
stderr: 
zsh28 extglob in pattern

stdout:
stderr: 
ash28 extglob in pattern

stdout:
stderr: