From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Read-only variables in emulation mode
Date: Tue, 17 Dec 2013 22:36:51 -0800 [thread overview]
Message-ID: <131217223651.ZM20980@torch.brasslantern.com> (raw)
In-Reply-To: <131216114013.ZM25877@torch.brasslantern.com>
On Dec 16, 11:40am, Bart Schaefer wrote:
} Subject: Re: Read-only variables in emulation mode
}
} On Dec 16, 8:10pm, Oystein Walle wrote:
} } Subject: Read-only variables in emulation mode
} }
} } I assume status and _ are meant to be writable in POSIX shells.
}
} Hmm. According to the doc, "status" should be writable but "_" not.
I looked a bit more closely at this and found that when zsh is *started*
in POSIX shell mode (e.g., the executable name is sh or ksh), then the
"status" variable is non-special, as expected.
It's a known limitation that invoking "emulate ..." after the shell is
already running does completely re-instantiate POSIX mode. This is not
likely to change.
However, I don't think there's any particular reason we couldn't remove
the readonly property from $_ if that would improve compatibility.
next prev parent reply other threads:[~2013-12-18 6:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-16 19:10 Øystein Walle
2013-12-16 19:40 ` Bart Schaefer
2013-12-18 6:36 ` Bart Schaefer [this message]
2013-12-18 19:28 ` Peter Stephenson
2013-12-19 7:57 ` Bart Schaefer
2015-06-16 0:10 ` Mikael Magnusson
2015-06-16 3:24 ` Bart Schaefer
2015-06-16 6:24 ` Mikael Magnusson
2015-06-16 15:54 ` Bart Schaefer
2015-06-16 21:06 ` Mikael Magnusson
2015-06-16 19:05 ` Bart Schaefer
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=131217223651.ZM20980@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).