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/>.
42 D=$"hello"," "$"world"
44 expect '<hello,> <world>'
47 expect '<hello, world>'
56 expect '<$hello, world>'
57 recho \$"hello, world"
59 expect '<hello, $world>'
60 recho $"hello, \$world"
62 expect '<hello, "world">'
63 recho $"hello, \"world\""
65 expect '<hello, $"world">'
66 recho $"hello"', $"world"'
68 expect '<hello, $"world">'
69 recho $'hello, $"world"'
71 expect '<$hello, chet>'
72 recho \$"hello, $world"
74 expect '<hello, chet>'
75 recho $"hello, $world"
79 $'\v\f\a\b') echo ok;;
83 # Dave Korn says this should be allowed and echo 'abcd'
86 # printf translates \' to ' ...
93 # and what do we do about unrecognized escape sequences?
111 recho $'hello, $"world"'
112 recho $'hello, \$"world"'
113 recho $'hello, $\"world"'
115 recho "hello, $"world""
117 # ansi quoting inside double-quoted command subst - bush-3.1 bug
118 echo $(set -- $'a b'; echo $#)
119 echo "$(set -- $'a b'; echo $#)"
121 echo "$(echo $';foo')"
125 for a in "$@";do echo "'$a'";done
128 recho "${mytab:-$'\t'}"
129 recho "$( args $'A\tB' )"
131 ${THIS_SH} ./nquote1.sub
132 ${THIS_SH} ./nquote2.sub
133 ${THIS_SH} ./nquote3.sub