[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 5cd7272447c83f5c78ea3607214c602b94fe8ef8

David Paleino d.paleino at gmail.com
Thu Sep 24 16:02:05 UTC 2009


The following commit has been merged in the master branch:
commit 5cd7272447c83f5c78ea3607214c602b94fe8ef8
Author: David Paleino <d.paleino at gmail.com>
Date:   Thu Sep 24 18:00:43 2009 +0200

    Correctly re-indent dd completion

diff --git a/contrib/dd b/contrib/dd
index b0ea594..6b98be8 100644
--- a/contrib/dd
+++ b/contrib/dd
@@ -6,30 +6,30 @@
 have dd &&
 _dd()
 {
-	 local cur
+	local cur
 
-	 COMPREPLY=()
-	 cur=`_get_cword`
+	COMPREPLY=()
+	cur=`_get_cword`
 
-	 case "$cur" in
-	 if=*|of=*)
-		 cur=${cur#*=}
-		 _filedir
-		 return 0
-		 ;;
-	 conv=*)
-		 cur=${cur#*=}
-		 COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock \
+	case "$cur" in
+	if=*|of=*)
+		cur=${cur#*=}
+		_filedir
+		return 0
+		;;
+	conv=*)
+		cur=${cur#*=}
+		COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock \
 				lcase notrunc ucase swab noerror sync' \
 				-- $cur ) )
-		 return 0
-		 ;;
-	 esac
+		return 0
+		;;
+	esac
 
-	 _expand || return 0
+	_expand || return 0
 
-	 COMPREPLY=( $( compgen -W '--help --version' -- $cur ) \
-		     $( compgen -W 'bs cbs conv count ibs if obs of seek skip'\
+	COMPREPLY=( $( compgen -W '--help --version' -- $cur ) \
+				$( compgen -W 'bs cbs conv count ibs if obs of seek skip'\
 				-S '=' -- $cur ) )
 } &&
 complete -F _dd $nospace $filenames dd

-- 
bash-completion



More information about the Bash-completion-commits mailing list