First, the actions specified by the compspec are used.
まず、補完仕様で指定された動作が用いられます。 - JM
If a compspec has been defined for that command, the compspec is used to generate the list of possible completions for the word.
そのコマンドに対して補完仕様が定義されていれば、それがその単語の補完候補のリスト作成に使われます。 - JM
If no compspec is found for the full pathname, an attempt is made to find a compspec for the portion following the final slash.
フルパス名の補完仕様が見つからなかった場合は、最後のスラッシュ以降の部分に対して該当する補完仕様を見つけようとします。 - JM
If the -o default option was supplied to complete when the compspec was defined, readline's default completion will be performed if the compspec generates no matches.
補完仕様の定義時に\\-o defaultオプションがcompleteに与えられていれば、補完仕様が何にもマッチしなければreadline のデフォルトの補完が行われます。 - JM
If the command word is a full pathname, a compspec for the full pathname is searched for first.
コマンドの単語がフルパス名であれば、最初にフルパス名の補完仕様が検索されます。 - JM
Once a compspec has been found, it is used to generate the list of matching words.
補完仕様が見つかると、それはマッチする単語のリストを作成するために使用されます。 - JM
comp-option may be one of: default Use readline's default filename completion if the compspec generates no matches.
default補完仕様がマッチを全く生成しなかった場合に、readline のデフォルトの補完を用います。 - JM
dirnames Perform directory name completion if the compspec generates no matches.
dirnames補完仕様がマッチを全く生成しなかった場合に、ディレクトリ名を補完しようとします。 - JM
If a compspec is not found, the default bash completion as described above under Completing is performed.
補完仕様が見つからなかった場合は、前述の 補完 で説明したようなデフォルトのbash の補完が行われます。 - JM
Programmable Completion When word completion is attempted for an argument to a command for which a completion specification (a compspec) has been defined using the complete builtin (see "SHELL BUILTIN COMMANDS" below), the programmable completion facilities are invoked.
プログラム補完complete 組み込みコマンドで補完仕様 (compspec) が定義されているコマンドに対して引き数の単語補完が試みられると、プログラム可能な補完の機能が呼び出されます(complete 組み込みコマンドについては、後述する"シェルの組み込みコマンド"を参照)。 - JM
By default, if a compspec is found, whatever it generates is returned to the completion code as the full set of possible completions.
デフォルトでは、補完仕様が見つかった場合、それが生成したものがなんであれ、可能性のある補完すべてのリストとして、補完コードに返されます。 - JM
Copyright (c) 2001 Robert Kiesling. Copyright (c) 2002, 2003 David Merrill. The contents of this document are licensed under the GNU Free Documentation License. Copyright (C) 1999 JM Project All rights reserved.