Bash scripts have quite complex quote state that sh doesn't implement in the parser fully, so we need to handle it in wordPart and unescape