aboutsummaryrefslogtreecommitdiff
path: root/src/blog/2023-10-31-spooky-shell-expansions/spooky-shell-expansion.md
blob: a70c74428f0a399c72339f402a468d3ff7c8c5d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Spooky shell expansions

*Let me tell you a story to chill the bones*  
*One that happened to me long time ago*

*It was a dark and cold night*  
*Plague spreading outside*  

*In the summer of '20*  
*I was hacking alone*  
*A little program I wanted to install*  
*Not in `/usr/local`, but in my `$HOME`*

*Young and foolish I was*  
*As I changed the Makefile*  
*`PREFIX = ~/.local`*  
*And then `make` I typed*

*That did not work, of course*  
*And I soon realized*  
*A new folder named `~`*  
*Had shown up in my `$HOME`*

*"How foolish I was" - I thought*  
*"That must not work,*  
*A Makefile won't expand*  
*As a shell script sure does"*

*A folder named `~`*  
*When left alone,*  
*Is no reason to fear*  
*Does no harm at all*  

*But care must be taken*  
*And alas, I did not*  
*Soon to learn the hard way*  
*What a `~` gives, a `~` takes away*

*"Let this be undone!" I exclaimed*

*As I typed*

*Four little bytes*  

```
$ rm ~
```

Generated with cgit - Back to sebastiano.tronto.net