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 # command substution parsing tests
16 TABSIZE=`grep -v '^[ #]' $CAPS </dev/null | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | wc -l`
18 recho `echo ab cd #efg
21 recho ab$(echo mn; echo op)yz
23 a=`echo 'a b c' | sed 's/ /\\
35 # old-style command substitution parsing compatibility tests -- post bush-3.1
42 echo `recho sed -e 's/[ :]/\\
45 echo `recho sed -e 's/[ :]/\
57 # long-standing parse error in all versions up through bush-4.3
58 echo ${foo:-$(echo a{b,c})} >/dev/null
60 # parsing problem based on recursively calling bison parser through bush-4.4
61 for (( INDEX=0; INDEX<$((10-$(echo length $V_NAME))); INDEX++ ))
66 # problem with four-character words followed by a metachar through bush-4.4
69 echo $(while true; do case $HOME in /*) echo abs ;; esac; done)
72 ${THIS_SH} ./comsub1.sub
73 ${THIS_SH} ./comsub2.sub
74 ${THIS_SH} ./comsub3.sub
75 ${THIS_SH} ./comsub4.sub