on master help sign in
Fix missing shell '-i' option when checking for wrapper in info.sh
commitc33af3581aa641831662e476cfe751e67b626f39 authorEthan P <eth-p+git@hidden.email> dateWed 8 Apr 2020, 14:15 (7 years ago) parent2f4ecf8
1 file changed+3−4
diagnostics/info.sh+3−4
diagnostics/info.sh+3−4
@@ -35,7 +35,6 @@ _tool_:description() {
3535 _collects "Version information for 'less'."
3636}
3737
38−
3938# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4039
4140_bat_:run() {
@@ -71,14 +70,14 @@ _bat_wrapper_:run() {
7170_bat_wrapper_function_:run() {
7271 case "$("$SHELL" --version | head -n 1)" in
7372 *fish*)
74− if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
73+ if "$SHELL" --login -i -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
7574 _out_fence "$SHELL" --login -c 'functions bat'
7675 return
7776 fi ;;
7877
7978 *bash*|*zsh*)
80− if "$SHELL" --login -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
81− _out_fence "$SHELL" --login -i -c 'declare -f bat'
79+ if "$SHELL" --login -i -c 'type bat' 2>&1 | grep 'function' &>/dev/null; then
80+ _out_fence "$SHELL" --login -c 'declare -f bat'
8281 return
8382 fi ;;
8483