#878583 bash: [PATCH] bashrc: Avoid a stat call when /usr/lib/command-not-found is available

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Date:
2017-10-14 19:21:04 UTC
Severity:
minor
#878583#5
Date:
2017-10-14 19:17:49 UTC
From:
To:
Dear Maintainer,

diff --git a/etc.bash.bashrc b/etc.bash.bashrc
index 54687b1..c01e89a 100644
--- a/etc.bash.bashrc
+++ b/etc.bash.bashrc
@@ -41 +41 @@ PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
-if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then
+if [[ -x /usr/lib/command-not-found || -x /usr/share/command-not-found/command-not-found ]]; then