about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/User/_diff_options4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/User/_diff_options b/Completion/User/_diff_options
index dd3d8bbe7..5cae712d3 100644
--- a/Completion/User/_diff_options
+++ b/Completion/User/_diff_options
@@ -3,8 +3,8 @@
 local of ofwuc ouc oss ofwy ofwg ofwl
 
 (( $+_diff_is_gnu )) || {
-	_diff_is_gnu=0
-        [[ $(command diff -v >/dev/null 2>&1) == *GNU* ]] && _diff_is_gnu=1
+	_diff_is_gnu=0;
+        [[ $(command diff -v </dev/null 2>/dev/null) == *GNU* ]] && _diff_is_gnu=1
 }
 
 if (( _diff_is_gnu ))