@(#)t4 6.2 (Berkeley) 04/17/91
.bp Appendix A - Grammar
item: word input-output name = value simple-command: item simple-command item command: simple-command ( command-list ) { command-list } for name do command-list done for name in word \*(ZZ do command-list done while command-list do command-list done until command-list do command-list done case word in case-part \*(ZZ esac if command-list then command-list else-part fi pipeline: command pipeline \*(VT command andor: pipeline andor && pipeline andor \*(VT\*(VT pipeline command-list: andor command-list ; command-list & command-list ; andor command-list & andor input-output: > file < file \*(AP word \*(HE word file: word & digit & - case-part: pattern ) command-list ;; pattern: word pattern \*(VT word else-part: elif command-list then command-list else-part else command-list empty empty: word: a sequence of non-blank characters name: a sequence of letters, digits or underscores starting with a letter digit: 0 1 2 3 4 5 6 7 8 9
.bp
Appendix B - Meta-characters and Reserved Wordsa) syntactic
b) patterns
c) substitution
d) quoting
e) reserved words if then else elif fi case in esac for while until do done { }