www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/12/11/03:11:35

Date: Thu, 11 Dec 1997 10:09:55 +0200 (EET)
From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
Reply-To: Esa DOT Peuha AT Helsinki DOT FI
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: djgpp-workers AT delorie DOT com
Subject: Re: Possible enhancements on v2.02
In-Reply-To: <Pine.SUN.3.91.971210111143.10111B-100000@is>
Message-ID: <Pine.OSF.3.96.971211095017.29069A-100000@vesuri.Helsinki.FI>
MIME-Version: 1.0

On Wed, 10 Dec 1997, Eli Zaretskii wrote:

> The problem is that fixing this is not easy.  DJGPP.ENV cannot be read
> before processing at least part of the command line (you need to know
> what argv[0] is, to get to the appropriate section of DJGPP.ENV), so
> this means either some serious changes in the way command line
> globbing works (divide it into two parts) or we need to do it again if
> DJGPP.ENV resets LFN.

Well, since the program's name is not part of the dos command line,
figuring out argv[0] is already very different from globbing the rest of
command line (in src/libc/crt0/c1args.c), so dividing that wouldn't be
very dramatic. In addition, programs that replace __crt0_setup_arguments()
wouldn't have to worry about setting argv[0] if they need variables
defined in DJGPP.ENV.

Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019