var_bash5.tests 183 B

1234567891011
  1. # This testcase checks whether slashes in ${v/a/b} are parsed before
  2. # or after expansions
  3. v='a/b/c'
  4. s='b/c'
  5. r='e/f'
  6. echo "${v/$s}"
  7. echo "${v/$s/d}"
  8. echo "${v/$s/$r}"
  9. echo Done: $?