delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/25/02:17:27

Date: Sat, 25 Oct 1997 11:49:55 +0530 (IST)
From: "Mahadevan R." <mdevan AT md2 DOT vsnl DOT net DOT in>
To: Hans Ecke <ecke AT coffee DOT geophysik DOT tu-freiberg DOT de>
Cc: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp AT delorie DOT com
Subject: Re: Running programs from inside bash
In-Reply-To: <Pine.HPP.3.96.971024170601.10598A-100000@coffee.geophysik.tu-freiberg.de>
Message-Id: <Pine.OSF.3.95.971025113849.3342A-100000@md2.vsnl.net.in>
Mime-Version: 1.0

On Fri, 24 Oct 1997, Hans Ecke wrote:

> Some days ago I posted a question about errors that occur while trying to
> run non-DJGPP-programs from inside bash.
> 
> Yes, DJGPP-programs run OK
> 
> I also noticed, that I can call any program from inside bash like this :
> c:>c:/command.com /c nc.exe
> But it should be a blame, that bash is not able to load&execute simple dos
> executables!

This could be because these dos executables expect an argv[0] in the form
"X:\PATH\FILE.EXE".  For e.g., if a program has a configuration file that
is meant to be in the same directory as the executable, then the path of
the config file will be created using argv[0].

If this is indeed the cause, then you could look around the bash
documentation for a solution.  Or perhaps modify the bash sources.

HTH,
Mahesh (Mahadevan R.), <mdevan AT iname DOT com>


- Raw text -


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