Bash

Bash. Variables inside aliases

Hey,

Recently I had to use bash alias that contains $(pwd) inside so I’ve defined it like that:

alias thename="something $(pwd) --option=value"

Of course I know a bit of bash so that’s why I use double quotes!

how I feel

But it turned out to be wrong. Each time when my bash/zsh was opened the alias was defined with INTERPRETED $(pwd) which is the directory where bash was opened (usualy home dir).