sh: Add a test for a fairly obscure case with aliases.