| 1 | This file is complete.def, from which is created complete.c.
|
|---|
| 2 | It implements the builtins "complete" and "compgen" in Bash.
|
|---|
| 3 |
|
|---|
| 4 | Copyright (C) 1999-2003 Free Software Foundation, Inc.
|
|---|
| 5 |
|
|---|
| 6 | This file is part of GNU Bash, the Bourne Again SHell.
|
|---|
| 7 |
|
|---|
| 8 | Bash is free software; you can redistribute it and/or modify it under
|
|---|
| 9 | the terms of the GNU General Public License as published by the Free
|
|---|
| 10 | Software Foundation; either version 2, or (at your option) any later
|
|---|
| 11 | version.
|
|---|
| 12 |
|
|---|
| 13 | Bash is distributed in the hope that it will be useful, but WITHOUT ANY
|
|---|
| 14 | WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|---|
| 15 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|---|
| 16 | for more details.
|
|---|
| 17 |
|
|---|
| 18 | You should have received a copy of the GNU General Public License along
|
|---|
| 19 | with Bash; see the file COPYING. If not, write to the Free Software
|
|---|
| 20 | Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
|---|
| 21 |
|
|---|
| 22 | $PRODUCES complete.c
|
|---|
| 23 |
|
|---|
| 24 | $BUILTIN complete
|
|---|
| 25 | $DEPENDS_ON PROGRAMMABLE_COMPLETION
|
|---|
| 26 | $FUNCTION complete_builtin
|
|---|
| 27 | $SHORT_DOC complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]
|
|---|
| 28 | For each NAME, specify how arguments are to be completed.
|
|---|
| 29 | If the -p option is supplied, or if no options are supplied, existing
|
|---|
| 30 | completion specifications are printed in a way that allows them to be
|
|---|
| 31 | reused as input. The -r option removes a completion specification for
|
|---|
| 32 | each NAME, or, if no NAMEs are supplied, all completion specifications.
|
|---|
| 33 | $END
|
|---|
| 34 |
|
|---|
| 35 | #include <config.h>
|
|---|
| 36 |
|
|---|
| 37 | #include <stdio.h>
|
|---|
| 38 |
|
|---|
| 39 | #include "../bashtypes.h"
|
|---|
| 40 |
|
|---|
| 41 | #if defined (HAVE_UNISTD_H)
|
|---|
| 42 | # include <unistd.h>
|
|---|
| 43 | #endif
|
|---|
| 44 |
|
|---|
| 45 | #include "../bashansi.h"
|
|---|
| 46 | #include "../bashintl.h"
|
|---|
| 47 |
|
|---|
| 48 | #include "../shell.h"
|
|---|
| 49 | #include "../builtins.h"
|
|---|
| 50 | #include "../pcomplete.h"
|
|---|
| 51 | #include "../bashline.h"
|
|---|
|
|---|