delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/09/19:12:45

From: nicb AT axnet DOT it (Nicola Bernardini)
Subject: pdksh 5.2.13 now *works* (had to be fixed tho)
9 Feb 1998 19:12:45 -0800 :
Message-ID: <Pine.LNX.3.96.980209194238.18539B-100000.cygnus.gnu-win32@ax-nicb.axnet.it>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com


Some time ago

> From: vzell AT de DOT oracle DOT com (Dr. Volker Zell)
> [snip]
> Compilation of pdksh-5.2.13 worked out of the box without any errors:
> But when executing ksh.exe I got:
>
> /ksh.exe: 1: bad number `1=FB=DDGot 2
>

and Earnie Boyd  replied:

[snip]
>It appears to be a problem with the curses.  What is the TERM variable
>set to?

since I got the same problem and I needed the ksh for an application
I am porting under windows NT, I debugged the thing, found out what
the real problem was, and got pdksh up and running. In fact, the fix
is extremely small and I attach a patch at the bottom of this mail.
I have the binaries for pdksh but no ftp site where to put them:
if somebody is willing to host them, I'll be glad to send them up...

nicb
 -----------------------------------------------------------------------
-
Nicola Bernardini
E-mail: nicb AT axnet DOT it

Re graphics: A picture is worth 10K words -- but only those to describe
the picture.  Hardly any sets of 10K words can be adequately described
with pictures.
 ---feed to patch -p0------feed to patch -p0------feed to patch -p0---
 --- misc.c.orig	Mon Feb 09 12:25:56 1998
+++ misc.c	Mon Feb 09 12:26:29 1998
@@ -100,7 +100,9 @@
 		return 0;
 	ns = alloc(n + 1, ap);
 	ns[0] = '\0';
 -	return strncat(ns, s, n);
+	strncat(ns, s, n);
+	ns[n] = '\0';
+	return ns;
 }

 /* called from expand.h:XcheckN() to grow buffer */

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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