Mail Archives: djgpp-workers/1999/05/10/02:35:12
On Sun, 9 May 1999, Mark E. wrote:
> I'm not sure if I've found a problem or not. Here's a case that produces
> gibberish at the end of the output string when FOO doesn't exist:
> /dev/env/FOO~c:/djgpp
Strange: this test case works for me. But you are right, the code is
dangerous, thanks for catching it.
> I missed the debate over the delimiter change while working on
> changing my email address, but if it isn't too late I would suggest " as
> a possible delimiter, as in:
> /dev/env/DJDIR"c:/djgpp"/include
Not good: the quotes are removed by the shell and by the DJGPP startup
code. So the quotes will never get to put_path, unless we quote the
quotes. However, quoting the quotes will never work right in this
case, because every sub-shell invocation removes one level of quotes,
and you can never be sure how many sub-shells are involved in a given
shell script.
- Raw text -