On 2019-07-05 at 13:29 -0700, Ray Andrews wrote:
Just curious: Is there some way of dumping the state of all variables at
all lines with both bash and zsh to some file or other such that one could
quickly spot exactly when and where something might change between them?
Not a proactive, analytic study of the code, but just a pragmatic finding of
differences after the fact.
`typeset -p` dumps all variables; the format differs slightly between
shells but that's light text-munging to normalize.
This is probably a good start:
trap 'typeset -p' DEBUG