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

Re: ksh compatibility: initial value of $_



On Sat, Apr 8, 2023 at 11:22 AM Oliver Kiddle <opk@xxxxxxx> wrote:

> One disadvantage of prefixing variables with "BASH" or "ZSH" is that it
> makes it harder for different shells to later be compatible with each
> other.

Has that actually happened with any variable in the last 20 years? (my
living memory)

I tried to push the git project to do something like
`ARGZERO=${ZSH_ARGZERO-$0}` for their sh testing framework to work on
zsh and it did not fly at all. I wonder if any such consensus has
actually taken place.

I think it's fine to use a ZSH_ prefix until there's consensus.

-- 
Felipe Contreras




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