From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21748 invoked by alias); 23 Jan 2016 01:52:29 -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: 37737 Received: (qmail 28498 invoked from network); 23 Jan 2016 01:52:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=36BOAToczpqAYdzqcxhUeiPd9rcu8k/QMXJgNJVKSoo=; b=i6ZRMb1gs+GYOh1f9T3JOGeipUfFD1Tr7Xt6Rd3TS3q1BqLge2iB7e+UpPcDJbJdRt JTQ83yS3DfqssndlPqNYIAAz/FM528sX3CGmVnFoHYgDs4Lyt4A2u4v4IvME0ICLrstp vyQYJf1/3pmrmJUVMiy1DGC0hKy16DQ+fCsqctgvQ3BaABHuM+z22tgmiDuqxzM4Cq5/ gzzlN4rW26EaMEt89L5nKr9yFaLguy7eq0aaGaWgqC+0CCB45EYjgnL/7E9kGI3uh9qf dcOQkjuhNjdDMW3WXUm2KvFdeGhaABVOyAkrKMQ5mRz9rp+oF5Ue/nJICTBPFCexbQ8B Og7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=36BOAToczpqAYdzqcxhUeiPd9rcu8k/QMXJgNJVKSoo=; b=JxgBafS8Tae4EccgmMkZetx54q5L9wVGHZ/EAj8LlKkj9iDz0W/0xESimULQ9IU97D 1hus4LF9Jdtr0wnQnLRpXlpZsRuQcS2xCqWxM8aC5b90+E2us2ZPTKNNHG+kmDy3zgG0 O5Js27PefZEOvPGcuHotDKF1LzSkvIwngQ8YTXqduk97Cf2yRaGJ4gayFNnL+nGFedG9 Rk1iUNrrlNOel2N1lW9lvSSF+HrjisIGiBIum0e27V8BmjRb+ollVI4HSYqYV/Y/8fZ8 x1tpftsmPd0e/ViPBAwLqNV7WuvWMNg/LXDHloMPdybXFzGFrUkqC8qqACDgvuK9t1l5 3WEQ== X-Gm-Message-State: AG10YORQ2h6yG/gtJugrl2eojalh6Fe4ZhJ7UVKoWt76o5iuK/uIqh92otg6kDpmhZ/+Cw== X-Received: by 10.98.42.81 with SMTP id q78mr8801593pfq.142.1453513947660; Fri, 22 Jan 2016 17:52:27 -0800 (PST) From: Bart Schaefer Message-Id: <160122175301.ZM11810@torch.brasslantern.com> Date: Fri, 22 Jan 2016 17:53:01 -0800 In-Reply-To: <56A2D27A.1050807@inlv.org> Comments: In reply to Martijn Dekker "Re: ${path[@]} in sh mode [was: Segfault with zsh 5.2]" (Jan 23, 1:08am) References: <87h9jujttm.fsf@gmail.com> <20151207135532.1a285c15@pwslap01u.europe.root.pri> <878u56jpob.fsf@gmail.com> <20151207143621.3cbbe7bd@pwslap01u.europe.root.pri> <56A28D28.3090701@inlv.org> <56A294F9.5020509@inlv.org> <56A2D27A.1050807@inlv.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: ${path[@]} in sh mode [was: Segfault with zsh 5.2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 23, 1:08am, Martijn Dekker wrote: } } > If you're in a function context, you can say 'typeset -h path' to hide } > the specialness of $path and declare a new local of the same name. Eg, } > one that isn't connected to PATH. } } It would be nice if that worked globally too, and even nicer if it were } automatically done by 'emulate sh' (or ksh for that matter) and undone } by 'emulate zsh'. But that might be non-trivial and the developers may } have other priorities. It's non-trivial. The emulate command only deals with setopts, not with keywords, parameters, etc.