If the command ends with '\' the last token will be lost, you need to check toAppend after the loop.

Looks good apart from that.

Hannes

Am 2015-05-15 um 15:42 schrieb Michael Haupt:
Dear all,

please review and sponsor this change.
Webrev: http://cr.openjdk.java.net/~mhaupt/8049300/webrev.00
RFE: https://bugs.openjdk.java.net/browse/JDK-8049300

There are several ways in which paths can contain spaces (quoting with "" or 
'', or escaping). The implementation of the $EXEC command would tokenise using a plain 
StringTokenizer, which splits a string at space characters regardless of quoting. The new 
implementation employs a StreamTokenizer and some extra logic to handle escaped spaces.

Thanks,

Michael


Reply via email to