var_bash4.tests 172 B

123456
  1. FOO='a*b\*c'
  2. BAR=${FOO//\\*/-backslashstar-}
  3. echo In assignment: "$BAR"
  4. echo Unquoted: ${FOO//\\*/-backslashstar-}
  5. echo Quoted: "${FOO//\\*/-backslashstar-}"
  6. echo Done: $?