Denis Vlasenko | 2659c63 | 2008-06-14 06:04:59 +0000 | [diff] [blame] | 1 | a='abc' |
2 | r=${a//b/\041#} | ||||
3 | echo $r | ||||
4 | echo ${a//b/\041#} | ||||
5 | echo "${a//b/\041#}" | ||||
6 | |||||
7 | a='abc' | ||||
8 | r=${a//b/\\041#} | ||||
9 | echo $r | ||||
10 | echo ${a//b/\\041#} | ||||
11 | echo "${a//b/\\041#}" | ||||
12 | |||||
13 | a='abc' | ||||
14 | b='\041#' | ||||
15 | r=${a//b/$b} | ||||
16 | echo $r | ||||
17 | echo ${a//b/$b} | ||||
18 | echo "${a//b/$b}" | ||||
19 | |||||
20 | a='abc' | ||||
21 | b='\' | ||||
22 | r="${a//b/$b}" | ||||
23 | echo $r | ||||
24 | echo ${a//b/$b} | ||||
25 | echo "${a//b/$b}" | ||||
26 | |||||
27 | a='abc' | ||||
28 | b='\\' | ||||
29 | r="${a//b/$b}" | ||||
30 | echo $r | ||||
31 | echo ${a//b/$b} | ||||
32 | echo "${a//b/$b}" | ||||
33 | |||||
34 | a='abc' | ||||
35 | b='\t' | ||||
36 | r="${a//b/$b}" | ||||
37 | echo $r | ||||
38 | echo ${a//b/$b} | ||||
39 | echo "${a//b/$b}" | ||||
40 | echo ${a//b/\t} | ||||
41 | echo "${a//b/\t}" |