On 11/08/2010 03:09 PM, Jonathan Nieder wrote: > 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' */
Hmm, that's rather invasive to change the grammar and make these reserved words. I'd rather go with something less invasive by modifying 2.9.1 to special-case special built-ins that take arguments which can affect the current environment, if that is possible. At any rate, the standard itself is already affected by this: line 74321 (export EXAMPLES) lists: Set and export the PATH variable: export PATH=/local/bin:$PATH without "" quoting of $PATH, so either we need to follow through with the intention of specifying ksh88 behavior of not needing the "", or we need to fix the example. -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature