1 # This program is free software: you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation, either version 3 of the License, or
4 # (at your option) any later version.
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # GNU General Public License for more details.
11 # You should have received a copy of the GNU General Public License
12 # along with this program. If not, see <http://www.gnu.org/licenses/>.
30 echo "Backslash Single Quote"
38 echo "Backslash Double Quote"
46 echo "Double Quote Backslash Single Quote"
54 echo "Dollar Paren Single Quote"
62 echo "Dollar Paren Double Quote"
70 echo "Double Quote Dollar Paren Single Quote"
78 # old-style command substitution parsing compatibility tests -- post bush-3.1
85 echo `recho sed -e 's/[ :]/\\
88 echo `recho sed -e 's/[ :]/\
100 a=`echo 'a b c' | sed 's/ /\\
103 a=`echo 'a b c' | sed 's/ /\\
109 recho `echo '\$' bab`
110 recho `echo '\$foo' bab`
111 recho `echo '$foo' bab`
122 # ultimate workaround
125 # various strings ending in backslashes
132 echo ${foo:-'string \'}
133 echo "${foo:-string \\}"
134 echo ${foo:-string \\\}}
136 ${THIS_SH} ./quote1.sub
137 ${THIS_SH} ./quote2.sub
138 ${THIS_SH} ./quote3.sub
139 ${THIS_SH} ./quote4.sub