about summary refs log tree commit diff
path: root/Completion/Unix/Command/_lp
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_lp')
-rw-r--r--Completion/Unix/Command/_lp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_lp b/Completion/Unix/Command/_lp
index d21f970f7..e7aebb956 100644
--- a/Completion/Unix/Command/_lp
+++ b/Completion/Unix/Command/_lp
@@ -2,7 +2,7 @@
 
 local expl ret=1 printer list disp strs shown
 
-if compset -P -[dP] || [[ "$words[CURRENT-1]" = -[dP] ]]; then
+if compset -P '-[dP]' || [[ "$words[CURRENT-1]" = -[dP] ]]; then
   _printers
 else
   if [[ "$service" = (lpq|lprm) ]]; then