til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

String Interpolation

I ran into some issues with string interpolation in Zsh, something basic, luckily the solution is basic.

Output a string:

FOOD="apples" && echo "I eat ${FOOD}"
I eat apples

Output a command:

FOOD="apples" && echo "I eat ${FOOD} on $(date)"
I eat apples on Tue Nov 11 19:54:11 CET 2025

Examples lifted from the references resource and modified for my own pleasure.

Resources and References