[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-380-g9e4605b

Ville Skyttä ville.skytta at iki.fi
Sat Jun 18 12:53:59 UTC 2011


The following commit has been merged in the master branch:
commit 07e06a9da83e7dd3a8b8d0d3b1184b64ade3f4d1
Author: Raphaël Droz <raphael.droz+floss at gmail.com>
Date:   Mon Jun 13 13:31:33 2011 +0200

    better compopt setting for lpr(1) -o option.

diff --git a/completions/cups b/completions/cups
index b37e400..6618965 100644
--- a/completions/cups
+++ b/completions/cups
@@ -26,8 +26,8 @@ _lpr()
             return 0
             ;;
         -o)
-            compopt -o nospace
             COMPREPLY=( $( compgen -W "media= landscape orientation-requested= sides= fitplot number-up= scaling= cpi= lpi= page-bottom= page-top= page-left= page-right=" -- "$cur" ) )
+            [[ $COMPREPLY == *= ]] && compopt -o nospace
             return 0
             ;;
     esac

-- 
bash-completion



More information about the Bash-completion-commits mailing list