4 ms·
If you're after how the shell parses commands, the EBNF grammar in the POSIX specification is a good start: https://pubs.opengroup.org/onlinepubs/9699919799/ut
by supriyo-biswas 4y ago
If you're after how the shell parses commands, the EBNF grammar in the POSIX specification is a good start:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10 https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...
Unfortunately, there's not much to a shell other than it's parsing capabilities.
- chasil 4y agoIt is unfortunate that an LR-parsed language was chosen. https://archive.fosdem.org/2018/schedule/event/code_parsing_posix_s_hell/ https://archive.fosdem.org/2018/schedule/event/code_parsing_...