When String Becomes Dangerous


Try this command:

mkdir -p "$HOME/tmp/tmp" && cd "$HOME/tmp/tmp"
touch echo stuff
*

If your results are anything like mine, the terminal should print stuff. The shell expands * as echo stuff, which is a valid command.

This is what happens when the only native data type for the shell is String.

Related Posts

e-ink reminisces

Edwin Edwards

Middle School by Bo Burnham

How to Disable Disqus Ads on your Blog

Derivation of Reservoir Sampling

Fun with Python Iterators: Linked Lists Made Easy

Notes for November 11, 2018

Underrated Vim Option: undofile and undodir

Hot Take on Solo Travel: Starve

Alan Perlis