From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20182 invoked by alias); 19 Sep 2010 21:40:14 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28279 Received: (qmail 11383 invoked from network); 19 Sep 2010 21:40:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <100919143945.ZM25629@torch.brasslantern.com> Date: Sun, 19 Sep 2010 14:39:43 -0700 In-reply-to: <100918002530.ZM29893@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: avoid $status and $options in POSIX mode" (Sep 18, 12:25am) References: <4C93A654.90807@redhat.com> <100917202510.ZM32292@torch.brasslantern.com> <100918002530.ZM29893@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: avoid $status and $options in POSIX mode MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Sep 18, 12:25am, Bart Schaefer wrote: } } I'm not entirely sure there aren't side effects of [the proposed } autoconf/posixshell module] making the global parameter scope deeper The worst effect I've found is that loading the module from inside a function makes it appear that function scope has never ended. This means the module must refuse to load except at top level, or at least behave differently in a function. Misc. mostly harmless things ... - An extra prompt is printed after "exit" when interactive - The warn_create_global option reports all undeclared parameters - Pushed history with "fc -a -p" is popped on module unload (feature!) - Diagnostics print line numbers as if in a function body } Oh, a fairly large omission at this point is that it doesn't disable } autoloads from other modules, so this does not yet solve the problem } of $options manifesting itself. The most obvious solution to this seems to be to walk the parameter table looking for PM_AUTOLOAD and mask any parameter that has it. Anyone have better suggestions? --