Closed gbtec-markusmeier closed 1 year ago
When loading forgit, backwards compatilibility checks reports variables not being exported although they are.
Reason is that bash's export does not return FORGIT_PAGER="less", but:
FORGIT_PAGER="less"
declare -x FORGIT_PAGER="less"
export FORGIT_PAGER="less"
set -o posix
We should additionally check for export in https://github.com/wfxr/forgit/blob/master/forgit.plugin.zsh#L25.
export
Checking for declare -x won't be necessary when we fix https://github.com/wfxr/forgit/issues/256.
declare -x
$ bash --version GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Check list
Environment info
Problem / Steps to reproduce
When loading forgit, backwards compatilibility checks reports variables not being exported although they are.
Reason is that bash's export does not return
FORGIT_PAGER="less"
, but:declare -x FORGIT_PAGER="less"
in default modeexport FORGIT_PAGER="less"
in posix mode (set -o posix
)We should additionally check for
export
in https://github.com/wfxr/forgit/blob/master/forgit.plugin.zsh#L25.Checking for
declare -x
won't be necessary when we fix https://github.com/wfxr/forgit/issues/256.