We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109be77 commit 322b263Copy full SHA for 322b263
bash_completion
@@ -1822,7 +1822,7 @@ _bashcomp_try_faketty()
1822
{
1823
if type unbuffer &>/dev/null; then
1824
unbuffer -p "$@"
1825
- elif script --version 2>&1 | command grep -qF util-linux; then
+ elif type script &>/dev/null && script --version 2>&1 | command grep -qF util-linux; then
1826
# BSD and Solaris "script" do not seem to have required features
1827
script -qaefc "$*" /dev/null
1828
else
0 commit comments