From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20455 invoked by alias); 29 Jan 2015 22:07:03 -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: 34431 Received: (qmail 13966 invoked from network); 29 Jan 2015 22:07:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) 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.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=CoYIqc8G c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=YNv0rlydsVwA:10 a=yZ8YJ1FkNXc-FghQfQUA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <150129140625.ZM14730@torch.brasslantern.com> Date: Thu, 29 Jan 2015 14:06:25 -0800 In-reply-to: <20150129204658.4a800bcb@ntlworld.com> Comments: In reply to Peter Stephenson "Re: Anyone want to help make zsh/db/gdbm work?" (Jan 29, 8:46pm) References: <150122211942.ZM28918@torch.brasslantern.com> <20150129204658.4a800bcb@ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: Anyone want to help make zsh/db/gdbm work? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jan 29, 8:46pm, Peter Stephenson wrote: } Subject: Re: Anyone want to help make zsh/db/gdbm work? } } I tried this again and it was differently screwed up from what I } expected. However, to cut a long story short, I think the following } fixes all the cases I know about. Thanks for looking. } Could do with playing with, tests, etc., but I think I'll leave it at } this. ztie() still calls createspecialhash() which only succeeds if the parameter is not set. So to make a ztie parameter local, one has to do this: (){ local foo unset foo ztie -d db/gdbm -f gdbmdb foo # $foo is now a local ztie } Still, this makes wrong the part of the doc I wrote about it always creating a global parameter. Should we document the need to both declare and unset the parameter, or should we add an implicit unset to ztie() ?