What is the phonetical link between pacman's “--refresh” and “-y” options?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












In pacman, --refresh and -y are the same option. But how are they phonetical related to each other? Is there a mnemonic?



For comparison: for many binaries -f is the short option of --force. It should be obvious how "f" is derived from "force" :)







share|improve this question


























    up vote
    1
    down vote

    favorite












    In pacman, --refresh and -y are the same option. But how are they phonetical related to each other? Is there a mnemonic?



    For comparison: for many binaries -f is the short option of --force. It should be obvious how "f" is derived from "force" :)







    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      In pacman, --refresh and -y are the same option. But how are they phonetical related to each other? Is there a mnemonic?



      For comparison: for many binaries -f is the short option of --force. It should be obvious how "f" is derived from "force" :)







      share|improve this question














      In pacman, --refresh and -y are the same option. But how are they phonetical related to each other? Is there a mnemonic?



      For comparison: for many binaries -f is the short option of --force. It should be obvious how "f" is derived from "force" :)









      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 16 '17 at 10:24









      muru

      33.5k577144




      33.5k577144










      asked Dec 16 '17 at 10:21









      Thomas Steinbach

      1414




      1414




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          There are said to be two hard problems in computer science. One of those is naming things. This is an effect of that.



          The database syncing feature was originally added as a separate pacsync command in 1.23. This command was then merged into pacman in the 2.0 release, and pacman gained many new options, including --sync/-S. Internally, this was still handled in a pacsync.c, and the action of refreshing the database was called syncing (the sync subcommand of the old pacsync, the sync_synctree() function in the new pacsync.c). Now we already have a master --sync option, so what do we do with the sub-option to that which syncs databases? I speculate that:



          • the devs decided to call it --refresh as a long option, a reasonable name,

          • but otherwise honour the sync-named things in the code by thinking of it as a second --sync option, because those things are sensibly named

          • and therefore, as is usually done when two long options have the same first character, moved to the second character for the short option, -y.

          As a factor in favour of this, the combination would become -Sy, the first two letters of "sync'.



          Part of the code for option handling:



          while((opt = getopt_long(argc, argv, "ARUQSTYr:vhscVfnoldpiuy", opts, &option_index))) {
          if(opt < 0)
          break;

          switch(opt) {
          ...
          case 'y': pmo_s_sync = 1; break;


          This whole thing happened ~15 years ago (2002), and I couldn't find any online discussions about in my searching, but I'm confident this is what happened.






          share|improve this answer




















          • Hi @muru, thank you for refining my question and giving a reasonable answer. I like the answer very much, especially because you gave me a mnemonic for -Sy(nc)
            – Thomas Steinbach
            Dec 16 '17 at 14:27











          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f411229%2fwhat-is-the-phonetical-link-between-pacmans-refresh-and-y-options%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote













          There are said to be two hard problems in computer science. One of those is naming things. This is an effect of that.



          The database syncing feature was originally added as a separate pacsync command in 1.23. This command was then merged into pacman in the 2.0 release, and pacman gained many new options, including --sync/-S. Internally, this was still handled in a pacsync.c, and the action of refreshing the database was called syncing (the sync subcommand of the old pacsync, the sync_synctree() function in the new pacsync.c). Now we already have a master --sync option, so what do we do with the sub-option to that which syncs databases? I speculate that:



          • the devs decided to call it --refresh as a long option, a reasonable name,

          • but otherwise honour the sync-named things in the code by thinking of it as a second --sync option, because those things are sensibly named

          • and therefore, as is usually done when two long options have the same first character, moved to the second character for the short option, -y.

          As a factor in favour of this, the combination would become -Sy, the first two letters of "sync'.



          Part of the code for option handling:



          while((opt = getopt_long(argc, argv, "ARUQSTYr:vhscVfnoldpiuy", opts, &option_index))) {
          if(opt < 0)
          break;

          switch(opt) {
          ...
          case 'y': pmo_s_sync = 1; break;


          This whole thing happened ~15 years ago (2002), and I couldn't find any online discussions about in my searching, but I'm confident this is what happened.






          share|improve this answer




















          • Hi @muru, thank you for refining my question and giving a reasonable answer. I like the answer very much, especially because you gave me a mnemonic for -Sy(nc)
            – Thomas Steinbach
            Dec 16 '17 at 14:27















          up vote
          3
          down vote













          There are said to be two hard problems in computer science. One of those is naming things. This is an effect of that.



          The database syncing feature was originally added as a separate pacsync command in 1.23. This command was then merged into pacman in the 2.0 release, and pacman gained many new options, including --sync/-S. Internally, this was still handled in a pacsync.c, and the action of refreshing the database was called syncing (the sync subcommand of the old pacsync, the sync_synctree() function in the new pacsync.c). Now we already have a master --sync option, so what do we do with the sub-option to that which syncs databases? I speculate that:



          • the devs decided to call it --refresh as a long option, a reasonable name,

          • but otherwise honour the sync-named things in the code by thinking of it as a second --sync option, because those things are sensibly named

          • and therefore, as is usually done when two long options have the same first character, moved to the second character for the short option, -y.

          As a factor in favour of this, the combination would become -Sy, the first two letters of "sync'.



          Part of the code for option handling:



          while((opt = getopt_long(argc, argv, "ARUQSTYr:vhscVfnoldpiuy", opts, &option_index))) {
          if(opt < 0)
          break;

          switch(opt) {
          ...
          case 'y': pmo_s_sync = 1; break;


          This whole thing happened ~15 years ago (2002), and I couldn't find any online discussions about in my searching, but I'm confident this is what happened.






          share|improve this answer




















          • Hi @muru, thank you for refining my question and giving a reasonable answer. I like the answer very much, especially because you gave me a mnemonic for -Sy(nc)
            – Thomas Steinbach
            Dec 16 '17 at 14:27













          up vote
          3
          down vote










          up vote
          3
          down vote









          There are said to be two hard problems in computer science. One of those is naming things. This is an effect of that.



          The database syncing feature was originally added as a separate pacsync command in 1.23. This command was then merged into pacman in the 2.0 release, and pacman gained many new options, including --sync/-S. Internally, this was still handled in a pacsync.c, and the action of refreshing the database was called syncing (the sync subcommand of the old pacsync, the sync_synctree() function in the new pacsync.c). Now we already have a master --sync option, so what do we do with the sub-option to that which syncs databases? I speculate that:



          • the devs decided to call it --refresh as a long option, a reasonable name,

          • but otherwise honour the sync-named things in the code by thinking of it as a second --sync option, because those things are sensibly named

          • and therefore, as is usually done when two long options have the same first character, moved to the second character for the short option, -y.

          As a factor in favour of this, the combination would become -Sy, the first two letters of "sync'.



          Part of the code for option handling:



          while((opt = getopt_long(argc, argv, "ARUQSTYr:vhscVfnoldpiuy", opts, &option_index))) {
          if(opt < 0)
          break;

          switch(opt) {
          ...
          case 'y': pmo_s_sync = 1; break;


          This whole thing happened ~15 years ago (2002), and I couldn't find any online discussions about in my searching, but I'm confident this is what happened.






          share|improve this answer












          There are said to be two hard problems in computer science. One of those is naming things. This is an effect of that.



          The database syncing feature was originally added as a separate pacsync command in 1.23. This command was then merged into pacman in the 2.0 release, and pacman gained many new options, including --sync/-S. Internally, this was still handled in a pacsync.c, and the action of refreshing the database was called syncing (the sync subcommand of the old pacsync, the sync_synctree() function in the new pacsync.c). Now we already have a master --sync option, so what do we do with the sub-option to that which syncs databases? I speculate that:



          • the devs decided to call it --refresh as a long option, a reasonable name,

          • but otherwise honour the sync-named things in the code by thinking of it as a second --sync option, because those things are sensibly named

          • and therefore, as is usually done when two long options have the same first character, moved to the second character for the short option, -y.

          As a factor in favour of this, the combination would become -Sy, the first two letters of "sync'.



          Part of the code for option handling:



          while((opt = getopt_long(argc, argv, "ARUQSTYr:vhscVfnoldpiuy", opts, &option_index))) {
          if(opt < 0)
          break;

          switch(opt) {
          ...
          case 'y': pmo_s_sync = 1; break;


          This whole thing happened ~15 years ago (2002), and I couldn't find any online discussions about in my searching, but I'm confident this is what happened.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 16 '17 at 11:10









          muru

          33.5k577144




          33.5k577144











          • Hi @muru, thank you for refining my question and giving a reasonable answer. I like the answer very much, especially because you gave me a mnemonic for -Sy(nc)
            – Thomas Steinbach
            Dec 16 '17 at 14:27

















          • Hi @muru, thank you for refining my question and giving a reasonable answer. I like the answer very much, especially because you gave me a mnemonic for -Sy(nc)
            – Thomas Steinbach
            Dec 16 '17 at 14:27
















          Hi @muru, thank you for refining my question and giving a reasonable answer. I like the answer very much, especially because you gave me a mnemonic for -Sy(nc)
          – Thomas Steinbach
          Dec 16 '17 at 14:27





          Hi @muru, thank you for refining my question and giving a reasonable answer. I like the answer very much, especially because you gave me a mnemonic for -Sy(nc)
          – Thomas Steinbach
          Dec 16 '17 at 14:27













           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f411229%2fwhat-is-the-phonetical-link-between-pacmans-refresh-and-y-options%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)