zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: More typeset bugs: POSIX_BUILTINS
Date: Sun, 29 Nov 2020 12:18:29 -0800	[thread overview]
Message-ID: <CAH+w=7aZ40Dnff8+n+7xFqm_7Bg_OMr3oyKDc2nrLzAsSkoqmQ@mail.gmail.com> (raw)
In-Reply-To: <20201129201246.z576arko6rlmr3pu@chazelas.org>

On Sun, Nov 29, 2020 at 12:12 PM Stephane Chazelas
<stephane@chazelas.org> wrote:
>
> FWIW, though I'd agree it's a bug, it's not a POSIX
> non-compliance as the behaviour for "readonly/export -p var" is
> unspecified by POSIX, POSIX only specifies "readonly/export -p"
> without arguments.

Both bash and ksh ignore -p for readonly/export when there are any
non-option arguments, and therefore create/assign the named variables.

So this is at least a ksh emulation incompatibility.


  reply	other threads:[~2020-11-29 20:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAH+w=7aYGZgF25Hypw=s31u5hfTT-Y+6pKzrCuD-1kB=1pShOg@mail.gmail.com>
2020-11-29 20:12 ` Stephane Chazelas
2020-11-29 20:18   ` Bart Schaefer [this message]
2020-11-30 17:07     ` Bart Schaefer
2020-11-30 17:14     ` Stephane Chazelas

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='CAH+w=7aZ40Dnff8+n+7xFqm_7Bg_OMr3oyKDc2nrLzAsSkoqmQ@mail.gmail.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).