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/>.
14 # bug in bush up to and including bush-3.0 (including patches)
16 # problem is conflict between CTLNUL used internally to denote quoted null
17 # characters and its value (0x7f) appearing in the expansion of a variable
62 eval tmp=`printf "$'\\\\\x%x'\n" 127`
63 printf "%#1x\n" "'$tmp"
69 eval c=\$\'\\$(printf '%o' $a)\'
86 recho ${#q} "${q}" ${q}
119 DEL=`awk 'END{printf("%c", 0+127)}' </dev/null`
122 set -- x $(echo $T1|wc -c) $(echo $T2|wc -c); shift
126 *) echo CTLNUL bug: L1=$L1, L2=$L2;;
133 recho ggg"$(echo $x)"hhh
139 recho ggg"$(echo $x)"hhh
145 recho ggg"$(echo $1)"hhh
151 recho ggg"$(echo $1)"hhh
156 recho ggg"$(echo $'\177')"hhh
158 ${THIS_SH} ./iquote1.sub