From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15962 invoked by alias); 22 Jan 2016 20:12:36 -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: 37730 Received: (qmail 11928 invoked from network); 22 Jan 2016 20:12:34 -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 autolearn=ham autolearn_force=no version=3.4.0 Message-ID: <56A28D28.3090701@inlv.org> Date: Fri, 22 Jan 2016 20:12:24 +0000 From: Martijn Dekker User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Peter Stephenson , zsh-workers@zsh.org Subject: ${path[@]} in sh mode [was: Segfault with zsh 5.2] References: <87h9jujttm.fsf@gmail.com> <20151207135532.1a285c15@pwslap01u.europe.root.pri> <878u56jpob.fsf@gmail.com> <20151207143621.3cbbe7bd@pwslap01u.europe.root.pri> In-Reply-To: <20151207143621.3cbbe7bd@pwslap01u.europe.root.pri> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Peter Stephenson schreef op 07-12-15 om 14:36: > Change now pushed. Can the ${path[@]} array be disabled in sh mode? I just noticed that it auto-syncs with the system $PATH. Lowercase "path" is a perfectly normal variable name in other shells and is a common English word, so conflicts that result in corruption of $PATH are not unlikely when running scripts written using other shells. Thanks, - M.