param_expand_bash_substring.right 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. SHELL: line 1: syntax error: bad substitution
  2. SHELL: line 1: syntax error: bad substitution
  3. SHELL: line 1: syntax error: bad substitution
  4. SHELL: line 1: syntax error: bad substitution
  5. SHELL: line 1: syntax error: missing '}'
  6. 0
  7. 1 =||
  8. 1:1 =||
  9. 1:1:2=||
  10. 1::2 =||
  11. 1:1: =||
  12. 1:: =||
  13. 1 =|0123|
  14. 1:1 =|123|
  15. 1:1:2=|12|
  16. 1::2 =|01|
  17. 1:1: =||
  18. 1:: =||
  19. f =||
  20. f:1 =||
  21. f:1:2=||
  22. f::2 =||
  23. f:1: =||
  24. f:: =||
  25. f =||
  26. f:1 =||
  27. f:1:2=||
  28. f::2 =||
  29. f:1: =||
  30. f:: =||
  31. f =|a|
  32. f:1 =||
  33. f:1:2=||
  34. f::2 =|a|
  35. f:1: =||
  36. f:: =||
  37. f =|0123456789|
  38. f:1 =|123456789|
  39. f:1:2=|12|
  40. f::2 =|01|
  41. f:1: =||
  42. f:: =||
  43. Substrings from special vars
  44. ? =|0|
  45. ?:1 =||
  46. ?:1:2=||
  47. ?::2 =|0|
  48. ?:1: =||
  49. ?:: =||
  50. # =|11|
  51. #:1 =|1|
  52. #:1:2=|1|
  53. #::2 =|11|
  54. #:1: =||
  55. #:: =||
  56. Substrings with expressions
  57. f =|01234567|
  58. f:1+1:2+2 =|2345|
  59. f:-1:2+2 =|01234567|
  60. f:1:f =|1234567|
  61. f:1:$f =|1234567|
  62. f:1:${f} =|1234567|
  63. f:1:${f:3:1} =|123|
  64. f:1:1`echo 1`=|1|
  65. Done