delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/28/09:50:24

X-Authentication-Warning: new-smtp2.ihug.com.au: Host p178-apx1.syd.ihug.com.au [203.173.140.178] claimed to be acceleron
Message-ID: <000a01c12fc7$80357930$0a02a8c0@acceleron>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>,
"Mark E." <snowball3 AT bigfoot DOT com>
Cc: <djgpp-workers AT delorie DOT com>, "Charles Sandmann" <sandmann AT clio DOT rice DOT edu>,
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Subject: Re: Bash 2.05 beta 23-Aug-2001 with Win 2K
Date: Tue, 28 Aug 2001 23:44:01 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Reply-To: djgpp-workers AT delorie DOT com

Mark,

I didn't think to check if the array_puts() function had hte correct
boundary condition as per the updated array_putc() you sent the other day. I
checked and array_puts() appears to need an update for the boundary conditon
as well.

The original code is:
    while (*s && (array->ptr <= array->end))
    {
      *(array->ptr) = *s;
      ++(array->ptr);
      ++s;
    }

I think the updated code should be
    while (*s && (array->ptr < array->end))
    {
      *(array->ptr) = *s;
      ++(array->ptr);
      ++s;
    }

In the while() the '<=' should be '<'. I gave this a quick test and it
appeared to work, but I need to get some sleep now and will test it tomorrow
night  for an hour or two.

Does this fix look okay?

Andrew


----- Original Message -----
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: "Mark E." <snowball3 AT bigfoot DOT com>
Cc: <djgpp-workers AT delorie DOT com>; "Charles Sandmann"
<sandmann AT clio DOT rice DOT edu>; "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sent: Tuesday, August 28, 2001 11:29 PM
Subject: Re: Bash 2.05 beta 23-Aug-2001 with Win 2K


> Mark,
>
> I have been dugging the Bash crash I have been having with Grep 2.4 and
the
> problem looks like it is to do with my path being long. The crash ocurrs
in
> the djgpp\config.site shell file when the "PATH_SEPARATOR=:" line is
> decoded/executed within Bash.
>
> In order for me to re-produce the crash I need to run the djgpp\config.bat
> and then on the second or subseqent try the crash will occur.  After I run
> the djgpp\config.bat once if I execute the follwoing command from the Grep
> directory Bash will also crash:
> redir -e test bash --debug --verbose configure
>
> My path variable is ( I need to clean this up as there are paths in there
> that no longer exist):
>
Path=D:\dj204\BIN;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\bin;C
> :\Pr
> ogram Files\GNU\WinCvs 1.3\;C:\PROGRAM FILES\Tcl\bin;C:\Program
> Files\Perforce;C
> :\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program
> Files\Micr
> osoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
> Studio\
> Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;
>
> I have put the debug versions of  variables.c and dospath.c that I used on
> my home page and the zip can be downloaded from the following URL:
> http://homepages.ihug.com.au/~acottrel
>
> The following is the output from Bash:
>
> # These two variables are required, otherwise looking for
> # programs along the PATH will not work.
> PATH_SEPARATOR=:


- Raw text -


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