delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/10/27/10:32:43

Date: Wed, 27 Oct 1999 16:18:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Laurynas Biveinis <lauras AT softhome DOT net>
cc: djgpp-workers AT delorie DOT com
Subject: Re: Help with arg passing
In-Reply-To: <3816F6CC.DE588CA2@softhome.net>
Message-ID: <Pine.SUN.3.91.991027161347.29100E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 27 Oct 1999, Laurynas Biveinis wrote:

> The reason - incorrect argv[0] if program is called through symlink.
> I can't make called program to see the name of symlink in its argv[0],
> it will see its exe name instead.

We could force the use of !proxy if the program is a symlink.  (I'm 
guessing that you check whether the program is a symlink before the 
decision is made how to invoke it.)

Do I understand that you don't intend to support symlinks to
non-DJGPP programs, because of this?

> Another reason - currently the same program with LFN .exe called
> two times with and without long command line will see two different 
> argv[0].

That's true, but any program that looks at its argv[0] should be ready 
to deal with this anyhow, since it gets the 8+3 alias when invoked from
the command line.

- Raw text -


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