I was today years old when I learned that bash and zsh (and probably other shells) treat single and double quotes differently. Single quotes will NOT evaluate variables:

foo=1; echo "$foo"

foo=1; echo '$foo'

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!