* somewhat unexpected abortion error
@ 2014-09-29 15:35 Mikael Magnusson
2014-09-29 15:58 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Mikael Magnusson @ 2014-09-29 15:35 UTC (permalink / raw)
To: zsh workers
% typeset -r PWD
% cd /; echo hi
zsh: read-only variable: PWD
(echo hi is not executed)
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. $PWD is
still the previous value but the output of `pwd' is correct and the
working directory is changed.
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: somewhat unexpected abortion error
2014-09-29 15:35 somewhat unexpected abortion error Mikael Magnusson
@ 2014-09-29 15:58 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2014-09-29 15:58 UTC (permalink / raw)
To: zsh workers
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).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-29 15:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-29 15:35 somewhat unexpected abortion error Mikael Magnusson
2014-09-29 15:58 ` Bart Schaefer
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).