Denys Vlasenko | e298ce6 | 2010-09-04 19:52:44 +0200 | [diff] [blame] | 1 | # This testcase checks whether slashes in ${v/a/b} are parsed before |
2 | # or after expansions | ||||
Denys Vlasenko | f7a8433 | 2010-08-30 13:54:12 +0200 | [diff] [blame] | 3 | |
4 | v='a/b/c' | ||||
5 | s='b/c' | ||||
6 | r='e/f' | ||||
7 | echo "${v/$s}" | ||||
8 | echo "${v/$s/d}" | ||||
9 | echo "${v/$s/$r}" | ||||
10 | |||||
11 | echo Done: $? |