6 ms·
Make me a sandwich
- bitwize 5y agoFun fact: The mascot for the sudo program itself is a sandwich with a face.
- cpach 5y agoHa! That’s cute. Didn’t even realize sudo had it own web site :)
- chrismorgan 5y agoThat does not look like the sandwiches I just made and ate. (Bread, cheese, tomato sauce; heat in microwave; insert salt and vinegar chips; eat.) That logo seems to have been introduced to the https://www.sudo.ws https://www.sudo.ws website in mid-2019: • Until 2019-04-23, the logo is an escutcheon: Azure, argent-rimmed, octothorpe semi-argent, lightning bolt Or atop, “SUDO” slogan argent above. https://web.archive.org/web/20190423191355/https://www.sudo.ws/ https://web.archive.org/web/20190423191355/https://www.sudo..... (I bet I got at least half of that heraldry terminology and expression wrong. Hopefully someone can correct me!) • From 2019-05-08, the logo is some kind of sandwich (bacon strips, tomato, cucumber?) that looks overly cheerful and possesses a mouth of its own (are the fillings of the sandwich things it has eaten?), as well as eyes and crust-coloured eyebrows. https://web.archive.org/web/20190508170506/https://www.sudo.ws/ https://web.archive.org/web/20190508170506/https://www.sudo....
- excalibur 5y agoIt's a BLT. But thanks for the history!
- Kiro 5y agoTomato sauce and vinegar chips? Not sure you can even call that a sandwich. The sudo logo on the other hand is the archetype of a sandwich.
- chrismorgan 5y agoNot vinegar chips, salt and vinegar chips. Perhaps not so popular in other parts of the world, but in Australia one of the top two flavours by a large margin (plain/original being the other; which of the two is more popular is unclear, with older people more likely to favour plain and younger S&V). Everything else is an also-ran.
- dahart 5y agoThere’s a high probability the logo was created in response to the XKCD, don’t you think? I’ll speculate yes. The sudo mailing list archive mentions the comic as “a favorite”.
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- snvzz 5y agoThe xkcd make call had the wrong syntax to begin with. As 'sandwich' is clearly the artifact, it should be 'make sandwich'.
- softblush 5y agoNo it hadn't. "ME", "A" and "SANDWICH" are just 3 different targets
- chrismorgan 5y agoI confess that “make me” feels more like a retort. sandwich: @echo "make me"
- hirundo 5y agosudo upvote this comment
- chewzerita 5y agoOkay.
- _def 5y agohirundo is not in the sudoers file. This incident will be reported.
- furgooswft13 5y agoIf you're a true ninja you say sudo !! http://yogihbti.github.io/images/bang-bang.jpg http://yogihbti.github.io/images/bang-bang.jpg
- deleted 5y ago[deleted]
- jgrahamc 5y agoThis should accept exactly "me a sandwich" or "ME A SANDWICH" on the GNU Make command line and do what's expected. And has the advantage of no repetition. But it is a tad more complex. [A-Z] := A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [a-z] := a b c d e f g h i j k l m n o p q r s t u v w x y z tr = $(if $1$2,$(call tr,$(wordlist 2,$(words $1),$1),$(wordlist 2,\ $(words $2),$2),$(subst $(firstword $1),$(firstword $2),$3)),$3) toupper = $(call tr,$([a-z]),$([A-Z]),$1) COMMAND := me a sandwich ifeq ($(MAKECMDGOALS),$(COMMAND)) fixcase = $1 endif ifeq ($(MAKECMDGOALS),$(call toupper,$(COMMAND))) fixcase = $(call toupper,$1) endif ifdef fixcase .PHONY: $(MAKECMDGOALS) UID := $(subst 0,,$(shell id -u)) $(wordlist 1,2,$(MAKECMDGOALS)): ; @true $(lastword $(MAKECMDGOALS)): ; @echo "$(call fixcase,$(if $(UID),\ What? Make it yourself,Okay))." endif
- chrismorgan 5y agoI think my favourite part of this is the inclusion of square brackets in the variable names [A-Z] and [a-z]. And possibly your description of this as “a tad more complex”. I love makefiles!
- jgrahamc 5y agoI have been messing with GNU Make syntax for... a while. https://gmsl.sourceforge.io/ https://gmsl.sourceforge.io/
- chrismorgan 5y agoI’ve enjoyed reading a lot of your stuff pertaining to Make. You chimed in last year when I wrote something about Make too: https://news.ycombinator.com/item?id=23268911 https://news.ycombinator.com/item?id=23268911. Thanks :-)
- thoughty 5y agoI don’t get it. Can someone explain?
- iratewizard 5y agoThere's an xkcd comic where the protag tells someone to make them a sandwich. They respond, "no, make one yourself." The protag then says "sudo make me a sandwich" and they respond "Okay". If you've ever set anything up in unix from the command line, you've run a command only to realize you need to run it as a super user (sudo). The post is scripting that let's you run "make me a sandwich" and "sudo make me a sandwich" in command line, just like the xkcd comic. It's not much of a joke, more of a novelty.
- hoangddt 5y agoThe xkcd is a joke that if you want to do anything in Linux, just put in a sudo. The blog post is a Makefile content that you will enable you to type it in the terminal with the output as the comic. What you should try is to create a file named `Makefile`, put in the content in the blog post. Then open the terminal and type `make me a sandwich` then `sudo make me a sandwich` and see the result.