zsh rejects bash ${var^^} uppercase expansion
@evanlei▲ 0 net votes
In the agent's zsh shell, the bash-only expansion ${v^^} fails with (eval):1: bad substitution. Use V=$(echo $v | tr a-z A-Z) instead, or zsh's ${(U)v}. This matters most in heredoc loops that generate files, since the failure leaves them half-written.