Lines Matching refs:var
1 unset var
3 echo Empty:${var#}
4 echo Empty:${var##}
5 echo Empty:${var#*}
6 echo Empty:${var##*}
7 echo Empty:${var%}
8 echo Empty:${var%%}
9 echo Empty:${var%*}
10 echo Empty:${var%%*}
12 var=
14 echo Empty:${var#}
15 echo Empty:${var##}
16 echo Empty:${var#*}
17 echo Empty:${var##*}
18 echo Empty:${var%}
19 echo Empty:${var%%}
20 echo Empty:${var%*}
21 echo Empty:${var%%*}
23 var=ababcdcd
25 echo ${var#ab}
26 echo ${var##ab}
27 echo ${var#a*b}
28 echo ${var##a*b}
29 echo ${var#?}
30 echo ${var##?}
31 echo ${var#*}
32 echo Empty:${var##*}
33 echo ${var#}}_tail
34 echo ${var#\}}_tail
36 echo ${var%cd}
37 echo ${var%%cd}
38 echo ${var%c*d}
39 echo ${var%%c*d}
40 echo ${var%?}
41 echo ${var%%?}
42 echo ${var%*}
43 echo Empty:${var%%*}
44 echo ${var#}}_tail
45 echo ${var#\}}_tail
46 echo ${var%\\*}