support dollar variable, command replace and getenv in shell command