[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #961: option quoting in csc is a complete mess
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #961: option quoting in csc is a complete mess |
Date: |
Wed, 26 Dec 2012 23:14:32 -0000 |
#961: option quoting in csc is a complete mess
-------------------------+--------------------------------------------------
Reporter: felix | Owner:
Type: defect | Status: new
Priority: major | Milestone: someday
Component: core tools | Version: 4.8.x
Resolution: | Keywords:
-------------------------+--------------------------------------------------
Description changed by felix:
Old 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.
New 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. It has to
be.
--
--
Ticket URL: <http://bugs.call-cc.org/ticket/961#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.