+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
: ${HOME:=/}
# works right
)
echo $()
echo ab$()cd
+echo ab$( )cd
echo $(case a in (a) echo sh_352.26ax; esac )
echo $(case a in (a) echo sh_352.26ay; esac)
case x in x) echo x;; esac
)
+echo $(
+ case x in x) echo x;; esac # followed by a comment
+)
+
echo $(
case x in (x) echo x;; esac
)
eof
)
+echo $(
+ cat <<\eof
+ here-doc with \()
+eof
+)
+
echo $(
cat <<\)
here-doc terminated with a parenthesis
eof
)
+echo $(
+ echo line terminated with a backslash # \
+)
+
${THIS_SH} ./comsub-posix1.sub
${THIS_SH} ./comsub-posix2.sub