From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17311 invoked by alias); 4 Jun 2011 12:24:23 -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: 29455 Received: (qmail 64 invoked from network); 4 Jun 2011 12:24:21 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=sFJN0Ai/Ddm6TY6tkGTGOVBWQxdOz/YVQbThm6duB5I=; b=etn8SkSqTJDdFupcctqV1ljNhXgJaD6graktlJ2vkmjgG+3QiLXgl54L0qoo8qihiU Wc6wE/mLUU0vMaJ3BbgXMMl2Rg6w50siLXgnIpkFEjXDoKDS7YxMl0uUmMdAa1rnqj9e Ye+FzQ1hRWYVE6OWg+Mu64WTvYduORapD5U9c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=iEk/C6BN8ekcfPqgpz7y9M8WDtnPLQQR6mMG0tUdF7nPf+UngRlrpNCqznYvVQ//b4 qErHQiyRhCfeGin8P4WekZlP75MC8OMcHBrxAQOZ0Yr2FowyNWnTYOYYQ8R3cGKrpC+D AxmtkFnnETDiWyKSlisIw+Y/u427NwCXSJSBU= MIME-Version: 1.0 Date: Sat, 4 Jun 2011 14:24:14 +0200 Message-ID: Subject: dynamic named directories clobber $reply From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 I noticed that after a successful ~[something] substitution, ~[] or ~[invalid] would return the same substitution, because $reply leaks to the parent shell, and my function doesn't unset $reply when it doesn't find anything valid. If I make it local in the function it doesn't work at all, is there some way it can be local in the hook somehow? -- Mikael Magnusson