[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] bash_completion

From: Tim Moloney <moloney_at_mrsl.com>
Date: 2002-12-19 00:08:34 CET

I had to do the following to get bash_completion to work with bash
version 2.05b which comes with Red Hat 8.0.

-- 
Tim Moloney
ManTech Real-time Systems Laboratory
2015 Cattlemen Road                             \     /
Sarasota, FL  34232                     .________\(O)/________.
(941) 377-6775 x208                        '  '  O(.)O  '  '

Index: tools/dev/bash_completion
===================================================================
--- tools/dev/bash_completion (revision 4159)
+++ tools/dev/bash_completion (working copy)
@@ -44,7 +44,7 @@
         # if not typing an option, or if the previous option required a
         # parameter, then fallback on ordinary filename expansion
         if [[ "$cur" != -* ]] || \
- [[ ${COMP_WORDS[COMP_CWORD-1]} == @($optsParam) ]] ; then
+ [[ ${COMP_WORDS[COMP_CWORD-1]} == @{$optsParam} ]] ; then
                 return 0
         fi
 
@@ -177,7 +177,7 @@
                 esac
 
                 # skip next option if this one requires a parameter
- if [[ $opt == @($optsParam) ]] ; then
+ if [[ $opt == @{$optsParam} ]] ; then
                         ((++i))
                 fi
         done

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 19 00:09:31 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.