Shell command parsing