https://unix.stackexchange.com/questions/405783/why-does-man-print-gimme-gimme-gimme-at-0030 Stack Exchange Network Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Visit Stack Exchange [ ] Loading... 1. 2. 0 3. +0 4. + Tour Start here for a quick overview of the site + Help Center Detailed answers to any questions you might have + Meta Discuss the workings and policies of this site + About Us Learn more about Stack Overflow the company + Business Learn more about hiring developers or posting ads with us 5. 6. Log in Sign up 7. current community + Unix & Linux help chat + Unix & Linux Meta your communities Sign up or log in to customize your list. more stack exchange communities company blog Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up. Sign up to join this community [ano] Anybody can ask a question [ano] Anybody can answer [an] The best answers are voted up and rise to the top Unix & Linux 1. Home 2. 1. Public 2. Questions 3. Tags 4. Users 5. Unanswered 6. Find a Job 7. Jobs 8. Companies 3. Teams Stack Overflow for Teams - Collaborate and share knowledge with a private group. [teams-illo-free-si] Create a free Team What is Teams? 1. Teams 2. Create free Team Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. Learn more Why does man print "gimme gimme gimme" at 00:30? Ask Question Asked 3 years, 8 months ago Active 14 days ago Viewed 385k times 1750 526 We've noticed that some of our automatic tests fail when they run at 00:30 but work fine the rest of the day. They fail with the message gimme gimme gimme in stderr, which wasn't expected. Why are we getting this output? date man Share Improve this question Follow edited Jul 15 at 10:55 [96b] AdminBee 14.9k1111 gold badges3030 silver badges5252 bronze badges asked Nov 20 '17 at 14:19 [hzj] Jaroslav KuceraJaroslav Kucera 7,88944 gold badges1111 silver badges2727 bronze badges 6 * 5 Linking in: unix.stackexchange.com/questions/226716/... - Jeff Schaller Nov 20 '17 at 14:29 * 61 I don't get it. Why does your test script call man where it should fail? - Joshua Nov 20 '17 at 16:20 * 23 @Joshua Because we wanted the "manpath" - 'man -w'. See the answer. - Jaroslav Kucera Nov 20 '17 at 17:48 * 75 for the sake of history, why do you need to do a 'man -w' every minutes? what are you really testing? - Olivier Dulac Nov 21 '17 at 10:12 * 25 @OlivierDulac It's being triggered just once in the test. We've rearanged the order of tests and suddenly this error apeared as it was triggered at 00:30... - Jaroslav Kucera Nov 21 '17 at 11:52 | Show 1 more comment 3 Answers 3 Active Oldest Votes 2306 Dear @colmmacuait, I think that if you type "man" at 0001 hours it should print "gimme gimme gimme". #abba [ @marnanel - 3 November 2011 ] er, that was my fault, I suggested it. Sorry. 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. I can't speak for Col, obviously, but I didn't expect this to ever cause any problems: what sort of test would break on parsing the output of man with no page specified? I suppose I shouldn't be surprised that one turned up eventually, but it did take six years. (The commit message calls me Thomas, which is my legal first name though I don't use it online much.) This issue has been fixed with commit 84bde8: Running man with man -w will no longer trigger this easter egg. Share Improve this answer Follow edited Nov 22 '17 at 1:50 [b7c] PF4Public 1251111 bronze badges answered Nov 21 '17 at 0:20 [pho] Marnanel ThurmanMarnanel Thurman 5,82922 gold badges77 silver badges1010 bronze badges 8 * 398 Oops! It was never meant to affect non-error cases. I didn't take account of this when I implemented git.savannah.gnu.org/cgit/ man-db.git/commit/.... Fixed in master: git.savannah.gnu.org/cgit/ man-db.git/commit/... - Colin Watson Nov 21 '17 at 9:55 * 3 Comments are not for extended discussion; this conversation has been moved to chat. - terdon Nov 21 '17 at 17:45 * 13 The comments are for asking for clarification and/or discussing the technical points of an answer. If you want to discuss the merits of Easter eggs, please take it to chat. - terdon Nov 21 '17 at 17:46 * 21 Mamma mia, now I really know! - Enlico Jul 15 '18 at 13:25 * 5 perhaps man needs a --seriously parameter - Patrick Taylor Oct 3 '18 at 6:08 | Show 3 more comments 457 This is an easter egg in man. When you run man without specifying the page or with -w, it outputs "gimme gimme gimme" to stderr, but only at 00:30: # date +%T -s "00:30:00" 00:30:00 # man -w gimme gimme gimme /usr/local/share/man:/usr/share/man:/usr/man The exit code is always 0. The correct output should always be: # man -w /usr/local/share/man:/usr/share/man:/usr/man # echo $? 0 # man What manual page do you want? # echo $? 1 The string "gimme gimme gimme" can be found in RHEL, OpenSUSE, Fedora, Debian and probably more, so it's not really distro specific. You can grep your man binary to verify. This code is responsible for the output, added by this commit: src/man.c-1167- if (first_arg == argc) { src/man.c-1168- /* http://twitter.com/#!/marnanel/status/132280557190119424 */ src/man.c-1169- time_t now = time (NULL); src/man.c-1170- struct tm *localnow = localtime (&now); src/man.c-1171- if (localnow && src/man.c-1172- localnow->tm_hour == 0 && localnow->tm_min == 30) src/man.c:1173: fprintf (stderr, "gimme gimme gimme\n"); I have contacted RHEL support about this issue. The string comes from well known ABBA song Gimme! Gimme! Gimme! (A Man After Midnight). --------------------------------------------------------------------- The developer of the man-db, Colin Watson, decided that there was enough fun and the story won't get forgotten and removed the easter egg completely. Thank you Colin! Share Improve this answer Follow edited Nov 22 '17 at 8:06 answered Nov 20 '17 at 14:19 [hzj] Jaroslav KuceraJaroslav Kucera 7,88944 gold badges1111 silver badges2727 bronze badges 11 * 155 On platforms with faketime available you can try this without even needing to change the system time: faketime '00:30:00' man (Debian 8). - roaima Nov 20 '17 at 15:05 * 5 @rrauenza There is the buzilla ticket: bugzilla.redhat.com/ show_bug.cgi?id=1515352 - Jaroslav Kucera Nov 21 '17 at 7:41 * 41 The author has now tightened the easter egg to only run on man, not man -w: git.savannah.nongnu.org/cgit/man-db.git/commit/src/... and Colin's comment on Marnanel's confessio^Wanswer. - Martijn Pieters Nov 21 '17 at 10:09 * 26 Let's mention that the initial commit triggered at 12:01am. A followup commit changed that to 12:30am with the commit log message "half past twelve" which is again quoted from the same song. - egmont Nov 21 '17 at 21:00 * 6 @0x90 man -w prints the current manual page search path, which is the sort of thing you might quite reasonably use as a building block for something else, for example if the thing you were automating involved installing or testing manual pages. - Colin Watson Nov 25 '17 at 20:06 | Show 6 more comments 412 After some reflection, I've removed this Easter egg. It'll be gone in the upcoming man-db 2.8.0. I'm glad that it made some people smile, which after all was the whole purpose of it, and my Twitter notifications and so on today suggest that most people thought it was more amusing than annoying. Still, some people did find it annoying, and six years seems like a pretty good run for that sort of thing; it probably isn't going to get significantly better exposure than it already unexpectedly has by way of this question. Time to put it to bed. Share Improve this answer Follow answered Nov 22 '17 at 1:47 [3f8] Colin WatsonColin Watson 3,28011 gold badge77 silver badges1313 bronze badges 12 * 142 I'm really sad you decided that. IMO too many people have it out for easter eggs. - Seth Nov 22 '17 at 1:52 * 40 I won't rule out adding something different in the future, albeit with more care! It was getting a bit stale, though, and humour does require novelty. - Colin Watson Nov 22 '17 at 1:54 * 34 I have to agree with @Seth, it is sad to see something go which made most of us smile, we need more of that actually on this world. - Videonauth Nov 22 '17 at 3:00 * 215 I hope this does not break any workflows xkcd.com/1172 - lakshayg Nov 22 '17 at 4:41 * 82 @ColinWatson I think disabling this in a default flow is a good idea, so it doesn't break anyone's workflow. But at the same time, it's a shame such a masterpiece had to be removed. You could add a special flag like man -abba and when fired after midnight would give the easter egg. - Bartlomiej Skwira Nov 22 '17 at 11:07 | Show 7 more comments Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity. Not the answer you're looking for? Browse other questions tagged date man or ask your own question. The Overflow Blog * Podcast 361: Why startups should use Kubernetes from day one * 700,000 lines of code, 20 years, and one developer: How Dwarf Fortress is built Featured on Meta * Join me in Welcoming Valued Associates: #945 - Slate - and #948 - Vanny Linked 266 What is the real difference between "apt-get" and "aptitude"? (How about "wajig"?) 314 What's the story behind Super Cow Powers? 111 What does the (!) mean after uptime on htop 23 Where is the latest source code of man command for linux? 17 What does the "3am" section means in manpages? 16 Why does oot say "hey" in usleep -o? 4 Why does abiword tell users to get a life? 1 Does anyone remember "wow"? Related 7 Emacs mode for man pages 2 Why date output X-3 instead X-2 days when I am doing arithmetic operations 4 How do you correctly extract all command synopses from manpages in / usr/share/man/man1? 15 Can't install man pages on minimal Centos Docker container 1 Take input arguments and pass them to date 4 `man --html` and `man --gxditview` exit with errors? 1 create custom profile to run man using firejail 5 Why a text editor shows different from cat command Hot Network Questions * I'm a lizard, cut here! * What's another word for "disingenuous interpretation" that also insinuates a malicious interpretation (not merely inaccurate)? * How can I use a vectorised function in R in alternate sequence? * What old sci-fi film is the source of this Hotels.com ad clip featuring a spaceship blowing up Earth? * Encrypted Snake (Grid Puzzle) * How do I keep my futuristic racing hovercraft from becoming airplanes? * Could Planck's constant be changing? * Simple rules for a successful partly remote policy with about 50% office time * When honing with a ceramic rod, why alternate edges of your knife? Why not hone each edge separately? * Did Truman say this about helping whichever of Germany and Russia were losing during the war? * Find the number of trailing zeros in factorial * Bash : how to pass arguments to a heredoc script * Parting gift for departing manager for which I didn't contribute hasn't arrived, and I'm the one supposed to give it to him * Explicit example de Rham moduli space of connections * What X-Men comic features Storm being attacked by a group of drug addicts in a housing project, and is saved by Luke Cage and Misty Knight? * Finding distance between polygons in same layer * Asking for some geopolitical variables suggestion * How do I hand saw in a straight line? * If we fixed SIM jacking would SMS then become a valid way to send an MFA token to? * When talking about computing, are "not enabled" and "disabled" same? * How to disguise insect meat? * Refusing to give a raise to an employee, while keeping her motivated * Can I send just the abstract before sending the full paper? * Which symbol represents multiplication? more hot questions Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. [https://unix.stackex] * Unix & Linux * Tour * Help * Chat * Contact * Feedback * Mobile Company * Stack Overflow * For Teams * Advertise With Us * Hire a Developer * Developer Jobs * About * Press * Legal * Privacy Policy * Terms of Service * Cookie Settings * Cookie Policy Stack Exchange Network * Technology * Life / Arts * Culture / Recreation * Science * Other * Stack Overflow * Server Fault * Super User * Web Applications * Ask Ubuntu * Webmasters * Game Development * TeX - LaTeX * Software Engineering * Unix & Linux * Ask Different (Apple) * WordPress Development * Geographic Information Systems * Electrical Engineering * Android Enthusiasts * Information Security * Database Administrators * Drupal Answers * SharePoint * User Experience * Mathematica * Salesforce * ExpressionEngine(r) Answers * Stack Overflow em Portugues * Blender * Network Engineering * Cryptography * Code Review * Magento * Software Recommendations * Signal Processing * Emacs * Raspberry Pi * Stack Overflow na russkom * Code Golf * Stack Overflow en espanol * Ethereum * Data Science * Arduino * Bitcoin * Software Quality Assurance & Testing * Sound Design * Windows Phone * more (29) * Photography * Science Fiction & Fantasy * Graphic Design * Movies & TV * Music: Practice & Theory * Worldbuilding * Video Production * Seasoned Advice (cooking) * Home Improvement * Personal Finance & Money * Academia * Law * Physical Fitness * Gardening & Landscaping * Parenting * more (10) * English Language & Usage * Skeptics * Mi Yodeya (Judaism) * Travel * Christianity * English Language Learners * Japanese Language * Chinese Language * French Language * German Language * Biblical Hermeneutics * History * Spanish Language * Islam * Russkii iazyk * Russian Language * Arqade (gaming) * Bicycles * Role-playing Games * Anime & Manga * Puzzling * Motor Vehicle Maintenance & Repair * Board & Card Games * Bricks * Homebrewing * Martial Arts * The Great Outdoors * Poker * Chess * Sports * more (16) * MathOverflow * Mathematics * Cross Validated (stats) * Theoretical Computer Science * Physics * Chemistry * Biology * Computer Science * Philosophy * Linguistics * Psychology & Neuroscience * Computational Science * more (10) * Meta Stack Exchange * Stack Apps * API * Data * Blog * Facebook * Twitter * LinkedIn * Instagram site design / logo (c) 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.7.29.39882 Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group. This site is not affiliated with Linus Torvalds or The Open Group in any way. Unix & Linux Stack Exchange works best with JavaScript enabled [p-c1rF4kxg] Your privacy By clicking "Accept all cookies", you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Accept all cookies Customize settings