cal -w does not work












4















With the standard terminal when I type



cal -w


I get a usage description indicating that 'cal' did not recognize the '-w'
but the '-w' is described in 'info cal' documentation. Is there a setting that enables this?










share|improve this question




















  • 2





    IIRC -w only applies to ncal

    – steeldriver
    Dec 7 '18 at 14:39






  • 1





    @steeldriver to be fair, the -w option is shown in man cal however it seems to only work with the ncal command

    – Charles Green
    Dec 7 '18 at 14:43








  • 3





    @CharlesGreen however the synopsis section shows w as an option for ncal only I think?

    – steeldriver
    Dec 7 '18 at 14:47






  • 3





    @steeldriver that is true, in that the man page for cal and ncal is the same page and it is up to the OP to realize that both commands are discussed and not all options are available to both commands.

    – Charles Green
    Dec 7 '18 at 14:55
















4















With the standard terminal when I type



cal -w


I get a usage description indicating that 'cal' did not recognize the '-w'
but the '-w' is described in 'info cal' documentation. Is there a setting that enables this?










share|improve this question




















  • 2





    IIRC -w only applies to ncal

    – steeldriver
    Dec 7 '18 at 14:39






  • 1





    @steeldriver to be fair, the -w option is shown in man cal however it seems to only work with the ncal command

    – Charles Green
    Dec 7 '18 at 14:43








  • 3





    @CharlesGreen however the synopsis section shows w as an option for ncal only I think?

    – steeldriver
    Dec 7 '18 at 14:47






  • 3





    @steeldriver that is true, in that the man page for cal and ncal is the same page and it is up to the OP to realize that both commands are discussed and not all options are available to both commands.

    – Charles Green
    Dec 7 '18 at 14:55














4












4








4








With the standard terminal when I type



cal -w


I get a usage description indicating that 'cal' did not recognize the '-w'
but the '-w' is described in 'info cal' documentation. Is there a setting that enables this?










share|improve this question
















With the standard terminal when I type



cal -w


I get a usage description indicating that 'cal' did not recognize the '-w'
but the '-w' is described in 'info cal' documentation. Is there a setting that enables this?







command-line calendar






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 7 '18 at 16:26









muru

1




1










asked Dec 7 '18 at 14:33









GreggGregg

1233




1233








  • 2





    IIRC -w only applies to ncal

    – steeldriver
    Dec 7 '18 at 14:39






  • 1





    @steeldriver to be fair, the -w option is shown in man cal however it seems to only work with the ncal command

    – Charles Green
    Dec 7 '18 at 14:43








  • 3





    @CharlesGreen however the synopsis section shows w as an option for ncal only I think?

    – steeldriver
    Dec 7 '18 at 14:47






  • 3





    @steeldriver that is true, in that the man page for cal and ncal is the same page and it is up to the OP to realize that both commands are discussed and not all options are available to both commands.

    – Charles Green
    Dec 7 '18 at 14:55














  • 2





    IIRC -w only applies to ncal

    – steeldriver
    Dec 7 '18 at 14:39






  • 1





    @steeldriver to be fair, the -w option is shown in man cal however it seems to only work with the ncal command

    – Charles Green
    Dec 7 '18 at 14:43








  • 3





    @CharlesGreen however the synopsis section shows w as an option for ncal only I think?

    – steeldriver
    Dec 7 '18 at 14:47






  • 3





    @steeldriver that is true, in that the man page for cal and ncal is the same page and it is up to the OP to realize that both commands are discussed and not all options are available to both commands.

    – Charles Green
    Dec 7 '18 at 14:55








2




2





IIRC -w only applies to ncal

– steeldriver
Dec 7 '18 at 14:39





IIRC -w only applies to ncal

– steeldriver
Dec 7 '18 at 14:39




1




1





@steeldriver to be fair, the -w option is shown in man cal however it seems to only work with the ncal command

– Charles Green
Dec 7 '18 at 14:43







@steeldriver to be fair, the -w option is shown in man cal however it seems to only work with the ncal command

– Charles Green
Dec 7 '18 at 14:43






3




3





@CharlesGreen however the synopsis section shows w as an option for ncal only I think?

– steeldriver
Dec 7 '18 at 14:47





@CharlesGreen however the synopsis section shows w as an option for ncal only I think?

– steeldriver
Dec 7 '18 at 14:47




3




3





@steeldriver that is true, in that the man page for cal and ncal is the same page and it is up to the OP to realize that both commands are discussed and not all options are available to both commands.

– Charles Green
Dec 7 '18 at 14:55





@steeldriver that is true, in that the man page for cal and ncal is the same page and it is up to the OP to realize that both commands are discussed and not all options are available to both commands.

– Charles Green
Dec 7 '18 at 14:55










2 Answers
2






active

oldest

votes


















0














Typing cal -w in the terminal shows extra arguments supported by cal and even more extra arguments supported by ncal:



$ cal -w
Usage: cal [general options] [-hjy] [[month] year]
cal [general options] [-hj] [-m month] [year]
ncal [general options] [-bhJjpwySM] [-s country_code] [[month] year]
ncal [general options] [-bhJeoSM] [year]
General options: [-NC31] [-A months] [-B months]
For debug the highlighting: [-H yyyy-mm-dd] [-d yyyy-mm]




  • cal only supports h, j and y arguments


  • ncal supports same arguments plus w option you seek and many more






share|improve this answer































    3














    There is no setting to change.



    cal and ncal share documentation. The -w option is available only for ncal



    This is explained in the 'usage' error you receive when you try to use -w with cal.



    If you wish, feel free to file a bug report against the 'bsdmainutils' package with recommended clarification to the documentation.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      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: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      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%2faskubuntu.com%2fquestions%2f1099185%2fcal-w-does-not-work%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Typing cal -w in the terminal shows extra arguments supported by cal and even more extra arguments supported by ncal:



      $ cal -w
      Usage: cal [general options] [-hjy] [[month] year]
      cal [general options] [-hj] [-m month] [year]
      ncal [general options] [-bhJjpwySM] [-s country_code] [[month] year]
      ncal [general options] [-bhJeoSM] [year]
      General options: [-NC31] [-A months] [-B months]
      For debug the highlighting: [-H yyyy-mm-dd] [-d yyyy-mm]




      • cal only supports h, j and y arguments


      • ncal supports same arguments plus w option you seek and many more






      share|improve this answer




























        0














        Typing cal -w in the terminal shows extra arguments supported by cal and even more extra arguments supported by ncal:



        $ cal -w
        Usage: cal [general options] [-hjy] [[month] year]
        cal [general options] [-hj] [-m month] [year]
        ncal [general options] [-bhJjpwySM] [-s country_code] [[month] year]
        ncal [general options] [-bhJeoSM] [year]
        General options: [-NC31] [-A months] [-B months]
        For debug the highlighting: [-H yyyy-mm-dd] [-d yyyy-mm]




        • cal only supports h, j and y arguments


        • ncal supports same arguments plus w option you seek and many more






        share|improve this answer


























          0












          0








          0







          Typing cal -w in the terminal shows extra arguments supported by cal and even more extra arguments supported by ncal:



          $ cal -w
          Usage: cal [general options] [-hjy] [[month] year]
          cal [general options] [-hj] [-m month] [year]
          ncal [general options] [-bhJjpwySM] [-s country_code] [[month] year]
          ncal [general options] [-bhJeoSM] [year]
          General options: [-NC31] [-A months] [-B months]
          For debug the highlighting: [-H yyyy-mm-dd] [-d yyyy-mm]




          • cal only supports h, j and y arguments


          • ncal supports same arguments plus w option you seek and many more






          share|improve this answer













          Typing cal -w in the terminal shows extra arguments supported by cal and even more extra arguments supported by ncal:



          $ cal -w
          Usage: cal [general options] [-hjy] [[month] year]
          cal [general options] [-hj] [-m month] [year]
          ncal [general options] [-bhJjpwySM] [-s country_code] [[month] year]
          ncal [general options] [-bhJeoSM] [year]
          General options: [-NC31] [-A months] [-B months]
          For debug the highlighting: [-H yyyy-mm-dd] [-d yyyy-mm]




          • cal only supports h, j and y arguments


          • ncal supports same arguments plus w option you seek and many more







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 7 '18 at 16:00









          WinEunuuchs2UnixWinEunuuchs2Unix

          44.7k1080170




          44.7k1080170

























              3














              There is no setting to change.



              cal and ncal share documentation. The -w option is available only for ncal



              This is explained in the 'usage' error you receive when you try to use -w with cal.



              If you wish, feel free to file a bug report against the 'bsdmainutils' package with recommended clarification to the documentation.






              share|improve this answer




























                3














                There is no setting to change.



                cal and ncal share documentation. The -w option is available only for ncal



                This is explained in the 'usage' error you receive when you try to use -w with cal.



                If you wish, feel free to file a bug report against the 'bsdmainutils' package with recommended clarification to the documentation.






                share|improve this answer


























                  3












                  3








                  3







                  There is no setting to change.



                  cal and ncal share documentation. The -w option is available only for ncal



                  This is explained in the 'usage' error you receive when you try to use -w with cal.



                  If you wish, feel free to file a bug report against the 'bsdmainutils' package with recommended clarification to the documentation.






                  share|improve this answer













                  There is no setting to change.



                  cal and ncal share documentation. The -w option is available only for ncal



                  This is explained in the 'usage' error you receive when you try to use -w with cal.



                  If you wish, feel free to file a bug report against the 'bsdmainutils' package with recommended clarification to the documentation.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 7 '18 at 15:05









                  user535733user535733

                  7,85722942




                  7,85722942






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • 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%2faskubuntu.com%2fquestions%2f1099185%2fcal-w-does-not-work%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

                      Berounka

                      Sphinx de Gizeh

                      Different font size/position of beamer's navigation symbols template's content depending on regular/plain...