I encountered another bug, introduced by 3cd5386 and not fixed by v2 of this patch: the presence of a length-counting expansion like ${#foo} in a string causes the rest of the string to be discarded.

$ src/dash -c 'foo=bar; echo "baz ${#foo} quux"'
baz 3
$ src/dash -c 'foo=bar; echo baz\ ${#foo}\ quux'
baz 3

(expected outout: baz 3 quux)

- Martijn

Reply via email to