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

Handy command line benchmarking tool

Stan Rogers

Ultimate Hot Couch Guy

Quote on Java Generics

The Programmer Tendency

Figure out undocumented JSON with gron

Mental Model of Dental Hygiene

Book Review: Swastika Night

Is there a name for this construction?

Fun with negation and idioms