In parameter expansion, white space is allowed to appear in replacement string like ${a/hi/h i} Our parser grammar doesn't support it currently.
*** Bug 366737 has been marked as a duplicate of this bug. ***
Pushed fix to myfork. Will eventually get pushed.