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

Re: [PATCH] TYPESET_TO_UNSET + misc.



On Wed, Apr 21, 2021 at 2:37 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Bart Schaefer wrote on Tue, Apr 20, 2021 at 17:06:10 -0700:
> > Is it worth attempting to explain [...]
>
> I suppose this is somewhat implied by the fact that there's no «typeset»
> syntax to create an unset variable when no_typesettounset is in effect?

Even if there were such syntax, it'd be questionable whether "typeset
-p" should employ it, because that would increase the bash/ksh
dissonance and could not be used with "readonly" or "export" in the
case where POSIX_BUILTINS is set.

Come to think of it, separating this from POSIX_BUILTINS as I did, may
have already reduced (or rather, failed to improve) POSIX
compatibility for those two commands.




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