Eric Blake wrote: > Would you like me to take a stab at writing the bug report(s) to add > support for 'local' in the next revision of the standard, and to require > the ksh/bash behavior of suppressing word splitting after shell builtins > that take arguments which can modify the current set of > shell/environment variables?
Yes, please. For suppression of word splitting, maybe something like the following would work? %token Export Readonly /* 'export' 'readonly' */ simple_command : cmd_prefix cmd_word cmd_suffix | cmd_prefix cmd_word | cmd_prefix | assign_cmd_name assign_cmd_suffix | assign_cmd_name | cmd_name cmd_suffix | cmd_name ; assign_cmd_name : Export | Readonly ; assign_cmd_suffix : io_redirect | assign_cmd_suffix io_redirect | ASSIGNMENT_WORD | assign_cmd_suffix ASSIGNMENT_WORD | WORD /* Apply rule 7b */ | assign_cmd_suffix WORD /* Apply rule 7b ; Side-effects: export and readonly would become keywords that can be quoted away. export and readonly with cmd_prefix would be ill-formed. \export foo=bar; # look for 'export' command on $PATH foo=bar export; # syntax error -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org