run `;cmd` through a shell
`;cd ~/dir` – shell expand `~/dir` for consistency.