]> git.lizzy.rs Git - plan9front.git/commit
rc: add subshell-function syntax
authorOri Bernstein <ori@eigenstate.org>
Thu, 8 Jul 2021 21:35:34 +0000 (21:35 +0000)
committerOri Bernstein <ori@eigenstate.org>
Thu, 8 Jul 2021 21:35:34 +0000 (21:35 +0000)
commit2f8a59f4b5bfe028c022855acc19666d69eed909
tree46c510cc457707480b3545c1bdc5cabaa4763b5c
parentb542dce430d408ed1f7457a26caa1d4bfc7339c4
rc: add subshell-function syntax

fn foo @{bar} is now equivalent to
fn foo {@{bar}}. As a side effect,
this disallows creating functions
named after keywords without first
quoting them.
sys/src/cmd/rc/syn.y