[PATCH 5/5] [programs/cmd] Correct handling of %~0 for batch call