do env variable assign with the command to do proper substitution