betelgeuse@pena ~/gsoc/libbash $ cat doc/replace.sh FOO='aa bb' echo ${FOO// } betelgeuse@pena ~/gsoc/libbash $ bash doc/replace.sh aabb betelgeuse@pena ~/gsoc/libbash $ ./ast_printer -f doc/replace.sh -memory-(3) : error 3 : ()* loopback of 110:18: ( redirect )*, at offset 5 near [Index: 10 (Start: 157652917-Stop: 157652917) ='$', type<79> Line: 3 LinePos:5] : cannot match to any predicted input... (LIST (= FOO (STRING (SINGLE_QUOTED_STRING aa bb))) Tree Error Node) It seems we must allow all kinds of white space probably for both pattern and replacement. For versionator I fixed having blanks in the pattern.
Developer retired (and his mail address is not active anymore)