Opened 11 years ago

Last modified 5 months ago

#961 closed defect

option quoting in csc is a complete mess — at Initial Version

Reported by: felix winkelmann Owned by:
Priority: major Milestone: someday
Component: core tools Version: 4.8.x
Keywords: Cc:
Estimated difficulty: hard

Description

Using things like csc -cflags in shell scripts is mostly unusable, as the quoted include path (-I" ... ") is taken verbatim and not recognized by gcc due to the quotes.

Even though this is fundamentally based on the completely useless and insane shell quoting rules of sh and it's bastards, the code in csc doesn't make it any better, by using various ways of quoting ("qs", "quotewrap", "quote-option") and a tangled labyrinth of variables and thoughtlessly written crap code.

csc needs a complete rewrite. Ideally with lots of stuff removed to makes it less complex (like deployment) and a single point where options are prepared shell and shell-quoted as necessary.

This will necessarily break lots of stuff. It doesn't matter. Is has to be.

Change History (0)

Note: See TracTickets for help on using tickets.