Documentation on bash completion

Multi tool use
I've been unable to find complete documentation for the complete
and compgen
bash builtin commands. I'm on a Macintosh and help complete
produces
complete: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]
with no documentation for the [-abcdefgjksuv] options. The gnu man page is also silent about these options.
bash autocomplete shell-builtin
add a comment |
I've been unable to find complete documentation for the complete
and compgen
bash builtin commands. I'm on a Macintosh and help complete
produces
complete: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]
with no documentation for the [-abcdefgjksuv] options. The gnu man page is also silent about these options.
bash autocomplete shell-builtin
add a comment |
I've been unable to find complete documentation for the complete
and compgen
bash builtin commands. I'm on a Macintosh and help complete
produces
complete: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]
with no documentation for the [-abcdefgjksuv] options. The gnu man page is also silent about these options.
bash autocomplete shell-builtin
I've been unable to find complete documentation for the complete
and compgen
bash builtin commands. I'm on a Macintosh and help complete
produces
complete: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]
with no documentation for the [-abcdefgjksuv] options. The gnu man page is also silent about these options.
bash autocomplete shell-builtin
bash autocomplete shell-builtin
asked Feb 24 at 18:46
LeonardLeonard
1084
1084
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You're right, it doesn't explicitly list those. They seem all to be short forms for various arguments to the -A action
option:
-A action
The action may be one of the following to generate a list of possible completions:
alias Alias names. May also be specified as
-a
.
builtin Names of shell builtin commands. May also be specified as
-b
.
and so on.
D'oh! I didn't read carefully. Thx.
– Leonard
Feb 24 at 19:11
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f502738%2fdocumentation-on-bash-completion%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You're right, it doesn't explicitly list those. They seem all to be short forms for various arguments to the -A action
option:
-A action
The action may be one of the following to generate a list of possible completions:
alias Alias names. May also be specified as
-a
.
builtin Names of shell builtin commands. May also be specified as
-b
.
and so on.
D'oh! I didn't read carefully. Thx.
– Leonard
Feb 24 at 19:11
add a comment |
You're right, it doesn't explicitly list those. They seem all to be short forms for various arguments to the -A action
option:
-A action
The action may be one of the following to generate a list of possible completions:
alias Alias names. May also be specified as
-a
.
builtin Names of shell builtin commands. May also be specified as
-b
.
and so on.
D'oh! I didn't read carefully. Thx.
– Leonard
Feb 24 at 19:11
add a comment |
You're right, it doesn't explicitly list those. They seem all to be short forms for various arguments to the -A action
option:
-A action
The action may be one of the following to generate a list of possible completions:
alias Alias names. May also be specified as
-a
.
builtin Names of shell builtin commands. May also be specified as
-b
.
and so on.
You're right, it doesn't explicitly list those. They seem all to be short forms for various arguments to the -A action
option:
-A action
The action may be one of the following to generate a list of possible completions:
alias Alias names. May also be specified as
-a
.
builtin Names of shell builtin commands. May also be specified as
-b
.
and so on.
answered Feb 24 at 18:51


ilkkachuilkkachu
61.5k10100177
61.5k10100177
D'oh! I didn't read carefully. Thx.
– Leonard
Feb 24 at 19:11
add a comment |
D'oh! I didn't read carefully. Thx.
– Leonard
Feb 24 at 19:11
D'oh! I didn't read carefully. Thx.
– Leonard
Feb 24 at 19:11
D'oh! I didn't read carefully. Thx.
– Leonard
Feb 24 at 19:11
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f502738%2fdocumentation-on-bash-completion%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
ScV9,N X nb9,fuzaL7iLwPwug 4ng