File: parser.tests

package info (click to toggle)
bash 5.3-2
  • links: PTS
  • area: main
  • in suites: sid
  • size: 44,432 kB
  • sloc: ansic: 134,747; sh: 8,866; yacc: 5,966; makefile: 4,697; perl: 4,105; asm: 48; awk: 23; sed: 16
file content (16 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (2)
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