In my tmux.conf, I need to start a session with the name of the current user in capitals (this is actually a simplification but it will do as an example).
Imagine a fictitious line like this one, which is illegal:
new-session -n BananaWindow -s "$(echo "${USER}" | tr '[:lower:]' '[:upper:]')" 'bash -l'
How can I achieve what is intended above?

if $HOSTNAME…statement of some kind, so I'd be interested in an answer to this, too. – Iain Dawson Oct 5 '12 at 11:34