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/>.
16 : $(case a in a) echo ;;# comment
19 : $(case a in a) echo ;; # comment
22 : $(: \;# not a comment )
24 : $(: \ # not a comment)
26 echo $(case a in a) echo \#esac ;;
29 : $(case a in a) : ;#esac ;;
32 : $(case a in a) : ;#esac comment )
41 echo $(case a in (a) echo ok 1;; # comment
44 echo $(case a in (a) echo ok 2;; # comment
48 echo $(case a in (a) echo ok 3 # comment
52 echo $(case a in a) echo ok 4;; # comment
55 echo $(case a in a) echo ok 5;; # comment
59 echo $(case a in (a) echo ok 6 # comment
63 echo $( # we just took and pasted in some
64 # code from another script inside a
65 # command substitution
69 # problem with parse_comsub through bush-4.4
70 case $(echo $$'x\nx') in