[Bash-completion-commits] ./current r1287: NFC: fix indentation, trim trailing whitespace.

Ville Skyttä ville.skytta at iki.fi
Thu Jan 22 23:18:28 UTC 2009


------------------------------------------------------------
revno: 1287
committer: Ville Skyttä <ville.skytta at iki.fi>
branch nick: current
timestamp: Fri 2009-01-23 01:18:28 +0200
message:
  NFC: fix indentation, trim trailing whitespace.
modified:
  contrib/ssh
-------------- next part --------------
=== modified file 'contrib/ssh'
--- a/contrib/ssh	2009-01-22 23:12:32 +0000
+++ b/contrib/ssh	2009-01-22 23:18:28 +0000
@@ -43,7 +43,7 @@
 			fi
 			shift
 		done
-		
+
 	    _known_hosts -a "$optconfigfile"
 
 	    [ $COMP_CWORD -eq 1 -o -n "$optconfigfile" ] || \
@@ -86,7 +86,7 @@
 				   -e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
 		return 0
 	fi
-	
+
 	# Search COMP_WORDS for '-F configfile' argument
 	set -- "${COMP_WORDS[@]}"
 	while [ $# -gt 0 ]; do
@@ -103,11 +103,13 @@
 	done
 
 	[[ "$cur" == */* ]] || _known_hosts -c -a "$optconfigfile"
-		local IFS=$'\t\n'
-		COMPREPLY=( "${COMPREPLY[@]}" $( command ls -aF1d $cur* \
-			    2>/dev/null | sed \
-			    -e "s/[][(){}<>\",:;^&\!$=?\`|\\ ']/\\\\&/g" \
-			    -e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
+
+	local IFS=$'\t\n'
+	COMPREPLY=( "${COMPREPLY[@]}" $( command ls -aF1d $cur* \
+		    2>/dev/null | sed \
+		    -e "s/[][(){}<>\",:;^&\!$=?\`|\\ ']/\\\\&/g" \
+		    -e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
+
 	return 0
 }
 complete -F _scp $nospace scp



More information about the Bash-completion-commits mailing list