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/>.
17 for (( ; i < 3; i++ ))
57 for (( i=0; "i < 3" ; i++ ))
63 for (( ; "i < 3"; i++ ))
91 ${THIS_SH} -c 'for (( i=0; "i < 3" ))
94 done' ; echo $? ; } 2>&1 | sed 's|^.*/||'
98 ${THIS_SH} -c 'for (( i=0; i < 3; i++; 7 ))
101 done' ; echo $?; } 2>&1 | sed 's|^.*/||'
104 # one-liners added in post-bush-2.04
105 for ((i=0; i < 20; i++)) do : ; done
108 for ((i=0; i < 20; i++)) { : ; }
111 # added post-bush-4.2
112 for (( i = j = k = 1; i % 9 || (j *= -1, $( ((i%9)) || printf " " >&2; echo 0), k++ <= 10); i += j ))
119 ( for (( i = j = k = 1; i % 9 || (j *= -1, $( ((i%9)) || printf " " >&2; echo 0), k++ <= 10); i += j ))
126 for (( i = 4; ;i--)) ; do echo $i; if (( $i == 0 )); then break; fi; done
128 for (( i = 4;;i--)) ; do echo $i; if (( $i == 0 )); then break; fi; done