如何正确阅读 Shell 语法?
How to properly read the Shell Grammar?
如何正确准确地阅读https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02处的Shell文法,尤其是在“文法符号”之后的文法?我不是说我完全听不懂,我大致理解,但我认为应该有类似 "standard for standard" 的东西,关于如何正确读写 Shell 语法..
感谢Shawn, it turned out that Shell Grammar uses the "yacc-style BNF syntax" which is described at https://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html#tag_20_159_13 (or an easier to read version here).
如何正确准确地阅读https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02处的Shell文法,尤其是在“文法符号”之后的文法?我不是说我完全听不懂,我大致理解,但我认为应该有类似 "standard for standard" 的东西,关于如何正确读写 Shell 语法..
感谢Shawn, it turned out that Shell Grammar uses the "yacc-style BNF syntax" which is described at https://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html#tag_20_159_13 (or an easier to read version here).