From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27603 invoked by alias); 29 Sep 2014 15:58:43 -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: 33282 Received: (qmail 25343 invoked from network); 29 Sep 2014 15:58:42 -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 From: Bart Schaefer Message-id: <140929085844.ZM6357@torch.brasslantern.com> Date: Mon, 29 Sep 2014 08:58:44 -0700 In-reply-to: Comments: In reply to Mikael Magnusson "somewhat unexpected abortion error" (Sep 29, 5:35pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: somewhat unexpected abortion error MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Sep 29, 5:35pm, Mikael Magnusson wrote: } Subject: somewhat unexpected abortion error } } % typeset -r PWD } % cd /; echo hi } zsh: read-only variable: PWD } } (echo hi is not executed) A non-interactive zsh would have exited at that point. (Which does not happen with other shells, AFAICT.) } This might be a bit unexpected (I didn't expect it), but then again I } guess you can only get yourself into this particular mess. A mismanaged /etc/z* file could also do so ... } $PWD is } still the previous value but the output of `pwd' is correct and the } working directory is changed. This is consistent with other shells (except for the part where the current command line is aborted).