zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: somewhat unexpected abortion error
Date: Mon, 29 Sep 2014 08:58:44 -0700	[thread overview]
Message-ID: <140929085844.ZM6357@torch.brasslantern.com> (raw)
In-Reply-To: <CAHYJk3Qkb4aTy+d4PbNiPcVs98wSUQoKafOqJk62TUmVGra0eQ@mail.gmail.com>

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).


      reply	other threads:[~2014-09-29 15:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29 15:35 Mikael Magnusson
2014-09-29 15:58 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=140929085844.ZM6357@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).