That 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 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..... (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....
Not 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.
There’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”.
This 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
I’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. Thanks :-)
There'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.
The 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.
24 comments
[ 4.1 ms ] story [ 68.1 ms ] threadThat logo seems to have been introduced to the 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..... (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....
As 'sandwich' is clearly the artifact, it should be 'make sandwich'.
This incident will be reported.
http://yogihbti.github.io/images/bang-bang.jpg
And possibly your description of this as “a tad more complex”. I love makefiles!
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.