JaCoLine icon indicating copy to clipboard operation
JaCoLine copied to clipboard

Unmatched quote causes rest of input to be treated as quoted

Open chriswhocodes opened this issue 5 years ago • 0 comments

-XX:GCLogFileSize=25M" ‑Dcom.sun.management.jmxremote ‑Dcom.sun.management.jmxremote.ssl=false ‑Dcom.sun.management.jmxremote.authenticate=false ‑Dcom.sun.management.jmxremote.port=9998 ‑Djava.net.preferIPv4Stack=true ‑Djava.rmi.server.hostname=${AWS_PUBLIC_HOSTNAME} ‑Dcom.sun.management.jmxremote.local.only=false ‑Dcom.sun.management.jmxremote.rmi.port=9999 ‑XX:HeapDumpPath=/var/log/pls ‑XX:+HeapDumpOnOutOfMemoryError ‑XX:+ExitOnOutOfMemoryError ‑XX:+UnlockExperimentalVMOptions ‑XX:+UseCGroupMemoryLimitForHeap ‑XX:MaxRAMFraction=2
--

The unmatched quote caused the rest of the options to be unparsed.

Better behaviour would be to detect unparsed quotes and treat them as part of the switch where they are first encountered.

chriswhocodes avatar Nov 24 '19 21:11 chriswhocodes