Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: More typeset bugs: POSIX_BUILTINS



On Sun, Nov 29, 2020 at 12:12 PM Stephane Chazelas
<stephane@xxxxxxxxxxxx> 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.




Messages sorted by: Reverse Date, Date, Thread, Author