Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Wednesday November 22 2017, @07:42PM   Printer-friendly
from the ABBA++ dept.

Spotted at Lobsters is a thread about a stackoverflow question on man; why does running "man -w" report "gimme gimme gimme" when run at 00:30?

This gets this response:

Pretty much the whole story is in the commit. The maintainer of man is a good friend of mine, and one day six years ago I jokingly said to him that if you invoke man after midnight it should print "gimme gimme gimme", because of the Abba song called "Gimme gimme gimme a man after midnight":

Well, he did actually put it in. A few people were amused to discover it, and we mostly forgot about it until today.

The commit in question, and more commentary over at HackerNews.

Anyone know of other good easter eggs that have cropped up unexpectedly and caught users out?


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 1, Disagree) by Rosco P. Coltrane on Wednesday November 22 2017, @08:10PM (12 children)

    by Rosco P. Coltrane (4757) on Wednesday November 22 2017, @08:10PM (#600319)

    man is documentation - and people do use it.

    Also, most people wish the stuff they use to do actual work wasn't trying to be funny or witty. There are other venues for that.

    Starting Score:    1  point
    Moderation   -1  
       Overrated=1, Disagree=2, Total=3
    Extra 'Disagree' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   1  
  • (Score: 5, Informative) by All Your Lawn Are Belong To Us on Wednesday November 22 2017, @08:40PM

    by All Your Lawn Are Belong To Us (6553) on Wednesday November 22 2017, @08:40PM (#600336) Journal

    most people wish the stuff they use to do actual work wasn't trying to be funny or witty.

    [Citation needed]

    --
    This sig for rent.
  • (Score: 4, Insightful) by Azuma Hazuki on Wednesday November 22 2017, @08:57PM

    by Azuma Hazuki (5086) on Wednesday November 22 2017, @08:57PM (#600343) Journal

    Pssh, you're just jealous 'cause YOUR Aptitude doesn't have Super Cow Powers!

    --
    I am "that girl" your mother warned you about...
  • (Score: 3, Informative) by tekk on Wednesday November 22 2017, @11:30PM (5 children)

    by tekk (5704) Subscriber Badge on Wednesday November 22 2017, @11:30PM (#600423)

    Did you read the article (well, it *is* soylent...)? Man never *doesn't* work, it just prints the message that gets returned when you don't pass it a man page if it's 00:30

    • (Score: 4, Interesting) by edIII on Thursday November 23 2017, @12:07AM (4 children)

      by edIII (791) on Thursday November 23 2017, @12:07AM (#600437)

      Haven't read the article, but that's not true I think. Just ran "man -w" and received:

      # man -w
      /usr/local/man:/usr/local/share/man:/usr/share/man
      #

      Now I don't know why, but if I was running "man -w" in a backtick from Perl trying to receive those paths, I would instead be parsing, "gimme gimme gimme". That's problematic because it isn't delimited the same way, won't be interpreted correctly, and the process would receive a failure code. Probably would only happen during installations or some obscure scripting, but if it WAS critical, then the Easter Egg did more harm than good.

      I'm all for being laid back and including Easter Eggs, and I do with some of the stuff I've done, but I've NEVER compromised function. Just added some funny shit that had no effect or bearing upon the process. Stuff like replacing some employee's names and login information upon login, or replacing a background image with something humorous. All display time Easter Eggs, in non-critical systems and processes.

      I can see the argument to keep it serious. Most of the stuff I do with servers and programming is for serious applications, and not entertainment. I don't need to spend 20 minutes to figure out that something failed because of a very weird corrupted output from a well understood function that somebody thought would be funny.

      --
      Technically, lunchtime is at any moment. It's just a wave function.
      • (Score: 1) by Ethanol-fueled on Thursday November 23 2017, @02:26AM

        by Ethanol-fueled (2792) on Thursday November 23 2017, @02:26AM (#600471) Homepage

        The older versions of Ubuntu have a similar easter egg:

        # man -w ubuntu
        mup/da/doo/didda/bidda/be/dat/tum/muhfugen/bix_nood

      • (Score: 2, Informative) by Anonymous Coward on Thursday November 23 2017, @03:41AM

        by Anonymous Coward on Thursday November 23 2017, @03:41AM (#600502)

        Apparently, using "man" with just a "-w" switch and without arguments WASN'T a documented way of using it. Once they heard that someone WAS using it that way, they didn't say "you're using it wrong", but acknowledged the usage and the Easter egg was limited to just man without switches OR arguments.

      • (Score: 4, Informative) by ncc74656 on Thursday November 23 2017, @03:49AM

        by ncc74656 (4917) on Thursday November 23 2017, @03:49AM (#600507) Homepage

        Now I don't know why, but if I was running "man -w" in a backtick from Perl trying to receive those paths, I would instead be parsing, "gimme gimme gimme".

        Only if you're parsing stderr instead of stdout. Here's the relevant set of lines in man.c, which I'll run together since the indentation will be fscked up anyway: if (localnow && localnow->tm_hour == 0 && localnow->tm_min == 30) fprintf (stderr, "gimme gimme gimme\n");

      • (Score: 5, Informative) by tekk on Thursday November 23 2017, @04:56AM

        by tekk (5704) Subscriber Badge on Thursday November 23 2017, @04:56AM (#600523)

        Looking at the man page, using man -w without a man page isn't allowed, the entry for -w doesn't say that you're allowed to omit a page; basically it's undocumented behavior that people are relying on.

  • (Score: 5, Funny) by TheRaven on Thursday November 23 2017, @08:59AM (2 children)

    by TheRaven (270) on Thursday November 23 2017, @08:59AM (#600574) Journal
    Manuals are now so uncommon for consumer goods that I've taken to telling people that man is short for mansplain. I'm hoping that a whole generation of *NIX users will think that documentation is provided by a mansplaining tool.
    --
    sudo mod me up
    • (Score: 0) by Anonymous Coward on Thursday November 23 2017, @01:34PM (1 child)

      by Anonymous Coward on Thursday November 23 2017, @01:34PM (#600645)

      In the name of gender equality, future Linux distribution will not only come with man, but also with woman.

      • (Score: 0) by Anonymous Coward on Monday November 27 2017, @07:04PM

        by Anonymous Coward on Monday November 27 2017, @07:04PM (#602140)

        Emacs already does :)

  • (Score: 2) by Runaway1956 on Thursday November 23 2017, @03:25PM

    by Runaway1956 (2926) Subscriber Badge on Thursday November 23 2017, @03:25PM (#600686) Journal

    "and people do use it"

    More citations needed. I'm pretty sure the only people who use man are techies and geeks, and not even all of those. The average twit has no idea what man is.