Documentation on bash completion












1















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.










share|improve this question



























    1















    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.










    share|improve this question

























      1












      1








      1








      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 24 at 18:46









      LeonardLeonard

      1084




      1084






















          1 Answer
          1






          active

          oldest

          votes


















          5














          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.






          share|improve this answer
























          • D'oh! I didn't read carefully. Thx.

            – Leonard
            Feb 24 at 19:11











          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          5














          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.






          share|improve this answer
























          • D'oh! I didn't read carefully. Thx.

            – Leonard
            Feb 24 at 19:11
















          5














          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.






          share|improve this answer
























          • D'oh! I didn't read carefully. Thx.

            – Leonard
            Feb 24 at 19:11














          5












          5








          5







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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



















          • 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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

          is 'sed' thread safe

          How to make a Squid Proxy server?