~svn/ubuntu/oneiric/subversion/ppa

« back to all changes in this revision

Viewing changes to tools/client-side/bash_completion_test

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-12-13 17:57:16 UTC
  • mfrom: (1.1.6 upstream) (0.1.3 etch)
  • Revision ID: james.westby@ubuntu.com-20061213175716-2ysv6z4w5dpa2r2f
Tags: 1.4.2dfsg1-2ubuntu1
* Merge with Debian unstable; remaining changes:
  - Create pot file on build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
set -e  # Exit on error
14
14
shopt -s extglob
 
15
export LC_ALL=C
15
16
 
16
17
# Execute the script which is to be tested.
17
18
. "$1"
75
76
    # Remove simple abbreviations
76
77
    ( while read SYNONYMS; do
77
78
        for CMD in $SYNONYMS; do
78
 
          for SYNONYM in $SYNONYMS; do
79
 
            if [ $CMD != "?" ]; then
 
79
          if [ "$CMD" != "?" ]; then
 
80
            for SYNONYM in $SYNONYMS; do
80
81
              case $SYNONYM in
81
82
              $CMD) ;;
82
83
              $CMD*) CMD= ; break ;;
83
84
              esac
 
85
            done
 
86
            if [ $CMD ]; then
 
87
              echo $CMD
84
88
            fi
85
 
          done
86
 
          if [ $CMD ]; then
87
 
            echo $CMD
88
89
          fi
89
90
        done
90
91
      done
115
116
 
116
117
echo "Checking general completion"
117
118
includes "he" "help"
118
 
includes "" "?"
119
 
includes "" "h"
120
119
includes "" "help"
121
120
includes "" "--version"
122
121