Created by: zbeekman
On macOS (10.15.7, x86) with brewed Bash (5.1.4(1)-release) and certain
Bash options set, command not found error messages are printed when
_lp_vcs_bookmark()
is invoked as the TEST-COMMAND of an if statement.
This is rather annoying. The output is printed on stdout. This commit
fixes the issue by discarding any output created by the if TEST-COMMAND.
Here are my Bash settings for completeness & reproducibility:
$ set -o
allexport off
braceexpand on
emacs on
errexit off
errtrace on
functrace off
hashall on
histexpand on
history on
ignoreeof off
interactive-comments on
keyword off
monitor on
noclobber off
noexec off
noglob off
nolog off
notify off
nounset off
onecmd off
physical off
pipefail off
posix off
privileged off
verbose off
vi off
xtrace off
Screenshot of the issue on master branch (as of 145f146e):
Screenshot showing issue is now resolved in this PR: