summaryrefslogtreecommitdiff
path: root/tests/parser.tests
blob: 51f566855f7ae4a81f99b895ac6d6f2a6460445b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# catch-all for parsing problems that don't fit anywhere else

# word_top issues in bash-5.2
case x in x) if ((1)); then :; fi ;; esac
case x in x) if ((1)); then :; fi esac

case x in x) if ((true ) ); then :; fi ;; esac
case x in x) if ((true ) ); then :; fi esac

# problem with bash-5.2
${THIS_SH} -c '((X=([))]' bash

# this has to be in a separate file to get desired EOF behavior
${THIS_SH} ./parser1.sub

${THIS_SH} ./posix2syntax.sub