nfiles was originally an unused variable, but I think I know the cause;
I changed the loop to use nfiles and the fileargs array instead of
argv directly, but I suspect (haven't looked yet) that it contains
argv[0] within it, hence opening edit.exe and not the last mentioned
file.  Just a guess.  I will have to look into opening files in
same directly as edit.exe versus current drive/directory.  I suspect
I know where it is, to fix I will have to duplicate a function as
where I saw it it was used to open the saved config file, hence using
the same directory as edit.exe, but it may also be used in opening
files for editing as well.  Once again, I haven't looked so I could
be incredibibly wrong here.  :-)
I'll try to get an edit 0.5d out shortly that fixes this.

Jeremy


On Thu, 28 Nov 2002 21:23:31 +0100 (MET) Eric Auer <[EMAIL PROTECTED]> wrote:

EA> 
EA> Hi, thanks for the update!
EA> 
EA> But I get a strange bug: EDIT opens EDIT.EXE (I think, argv[0]) when I
EA> give
EA> a single command line argument. When I give TWO arguments, it opens
...
EA> Maybe the abovementioned argv bug is related to Jeremies
EA> ENABLEGLOBALARGV
EA> patches.
EA> 
EA> This is related, too, I guess:
EA> -    n_files = argc - n_options;
EA> +    n_files = argc - n_options - 1/*argv[0]*/;
EA> (in EDIT.C)
EA> 
EA> Did somebody find other bugs with plain DOS and/or after compiling
EA> with Turbo C 2.01 ? Or made a patch for the bugs mentioned above (and
EA> in READ.ME) ? Thanks...!
EA> 
EA> Eric

----------
list options/archives/etc.: http://www.topica.com/lists/fd-dev
unsubscribe: send blank email to: [EMAIL PROTECTED]

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bz8Rv5.bbRv4l.YXJjaGl2
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to