Results for var-op-strip.test.sh

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

Details on runs that didn't PASS

osh_.py2 Remove const suffix is vectorized on user array

[osh_.py stdout] Expected "['1', '2', '3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${a[@]%a}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc2 Remove const suffix is vectorized on user array

[osh_.cc stdout] Expected "['1', '2', '3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${a[@]%a}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py3 Remove const suffix is vectorized on $@ array

[osh_.py stdout] Expected "['1', '2', '3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${@%a}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc3 Remove const suffix is vectorized on $@ array

[osh_.cc stdout] Expected "['1', '2', '3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${@%a}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py10 Strip unicode prefix

[osh_.py stdout] Expected '-\n-\n-\n-\n', got '\xce\xbc-\n\xce\xbc-\n-\xce\xbc\n-\xce\xbc\n'

stdout:
μ-
μ-
-μ
-μ
stderr:
osh_.cc10 Strip unicode prefix

[osh_.cc stdout] Expected '-\n-\n-\n-\n', got '\xce\xbc-\n\xce\xbc-\n-\xce\xbc\n-\xce\xbc\n'

stdout:
μ-
μ-
-μ
-μ
stderr:
osh_.py11 Bug fix: Test that you can remove everything with glob

[osh_.py stdout] Expected "['', '--x-', '-x--', '']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${s%%-*}" "${s%-*}" "${s#*-}" "${s##*-}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc11 Bug fix: Test that you can remove everything with glob

[osh_.cc stdout] Expected "['', '--x-', '-x--', '']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${s%%-*}" "${s%-*}" "${s#*-}" "${s##*-}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py12 Test that you can remove everything with const

[osh_.py stdout] Expected "['', '', '', '']\n['abcd', 'abcd', 'abcd', 'abcd']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${s%%abcd}" "${s%abcd}" "${s#abcd}" "${s##abcd}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${s%%abcde}" "${s%abcde}" "${s#abcde}" "${s##abcde}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc12 Test that you can remove everything with const

[osh_.cc stdout] Expected "['', '', '', '']\n['abcd', 'abcd', 'abcd', 'abcd']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${s%%abcd}" "${s%abcd}" "${s#abcd}" "${s##abcd}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${s%%abcde}" "${s%abcde}" "${s#abcde}" "${s##abcde}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py13 Prepend using replacement of #

[osh_.py stdout] Expected "['prefix-aa', 'prefix-bb', 'prefix-']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${array[@]/#/prefix-}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc13 Prepend using replacement of #

[osh_.cc stdout] Expected "['prefix-aa', 'prefix-bb', 'prefix-']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${array[@]/#/prefix-}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py14 Append using replacement of %

[osh_.py stdout] Expected "['aa-suffix', 'bb-suffix', '-suffix']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${array[@]/%/-suffix}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc14 Append using replacement of %

[osh_.cc stdout] Expected "['aa-suffix', 'bb-suffix', '-suffix']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${array[@]/%/-suffix}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py19 Nested % and # operators (bug reported by Crestwave)

[osh_.py stdout] Expected "['']\n['\\n']\n['\\n']\n['']\n['a']\n['a']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${var#?}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${var%''}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${var%"${var#?}"}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${var#?}"
  ^~~~~~~
[ stdin ]:6: 'argv.py' not found
  argv.py "${var%''}"
  ^~~~~~~
[ stdin ]:7: 'argv.py' not found
  argv.py "${var%"${var#?}"}"
  ^~~~~~~
[ stdin ]:8: 'argv.py' not found
osh_.cc19 Nested % and # operators (bug reported by Crestwave)

[osh_.cc stdout] Expected "['']\n['\\n']\n['\\n']\n['']\n['a']\n['a']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${var#?}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${var%''}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${var%"${var#?}"}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${var#?}"
  ^~~~~~~
[ stdin ]:6: 'argv.py' not found
  argv.py "${var%''}"
  ^~~~~~~
[ stdin ]:7: 'argv.py' not found
  argv.py "${var%"${var#?}"}"
  ^~~~~~~
[ stdin ]:8: 'argv.py' not found
osh_.py20 strip * (bug regression)

[osh_.py stdout] Expected "['abc']\n['']\n['abc']\n['']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#*}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##*}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%*}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%*}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.cc20 strip * (bug regression)

[osh_.cc stdout] Expected "['abc']\n['']\n['abc']\n['']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#*}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##*}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%*}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%*}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.py21 strip ?

[osh_.py stdout] Expected "['bc']\n['bc']\n['ab']\n['ab']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#?}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##?}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%?}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%?}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.cc21 strip ?

[osh_.cc stdout] Expected "['bc']\n['bc']\n['ab']\n['ab']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#?}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##?}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%?}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%?}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.py22 strip all

[osh_.py stdout] Expected "['']\n['']\n['']\n['']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#abc}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##abc}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%abc}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%abc}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.cc22 strip all

[osh_.cc stdout] Expected "['']\n['']\n['']\n['']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#abc}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##abc}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%abc}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%abc}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.py23 strip none

[osh_.py stdout] Expected "['abc']\n['abc']\n['abc']\n['abc']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.cc23 strip none

[osh_.cc stdout] Expected "['abc']\n['abc']\n['abc']\n['abc']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.py24 strip all unicode

[osh_.py stdout] Expected '\n\n\n\n', got '\xce\xbcabc\xce\xbc\n\xce\xbcabc\xce\xbc\n\xce\xbcabc\xce\xbc\n\xce\xbcabc\xce\xbc\n'

stdout:
μabcμ
μabcμ
μabcμ
μabcμ
stderr:
osh_.cc24 strip all unicode

[osh_.cc stdout] Expected '\n\n\n\n', got '\xce\xbcabc\xce\xbc\n\xce\xbcabc\xce\xbc\n\xce\xbcabc\xce\xbc\n\xce\xbcabc\xce\xbc\n'

stdout:
μabcμ
μabcμ
μabcμ
μabcμ
stderr:
osh_.py25 strip none unicode

[osh_.py stdout] Expected "['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.cc25 strip none unicode

[osh_.cc stdout] Expected "['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${x#}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${x##}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
  argv.py "${x%}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
  argv.py "${x%%}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found