explainshell icon indicating copy to clipboard operation
explainshell copied to clipboard

Incorrect output for complex gcc commands

Open coderkd10 opened this issue 8 years ago • 4 comments

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.

coderkd10 avatar Sep 14 '17 11:09 coderkd10

PR is very welcome

stoivo avatar Sep 14 '17 21:09 stoivo

Yeah, gcc is a mess. It has a weird man page and compared to other binaries, its command line formatting is complicated that it doesn't bode well with explainshell trying to be as general as possible.

idank avatar Sep 16 '17 19:09 idank

Simple gcc commands are also not working g++ -std=c++17 main.cpp. check explainshell

0x6773 avatar Oct 04 '17 19:10 0x6773