Incorrect output for complex gcc commands

Author: coderkd10Created Sep 14, 2017Updated Feb 11, 2025

when I enter the following command (a complex gcc compilation command) into explainshell it cause it to behave very weirdly and it generate very bad (partially wrong) explanation.

command : gcc -xc++-header -I"../t4/thirdparty/md5" -I"../../PDFViewer/RMSDK/xml/uft/public" a.c

url : https://explainshell.com/explain?cmd=gcc+-xc%2B%2B-header+-I%22..%2Ft4%2Fthirdparty%2Fmd5%22+-I%22..%2F..%2FPDFViewer%2FRMSDK%2Fxml%2Fuft%2Fpublic%22+a.c

I will try and look into the source and try to analyse its cause and submit a pull request if I am able to fix it.