delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/10/22:04:17

From: steveg1 AT primenet DOT com (Steve Gillespie)
Subject: Pdksh compile using gnu-win32
10 May 1997 22:04:17 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.WNT.3.96.970510152838.217A-100000.cygnus.gnu-win32@primenet.primenet.com>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
X-X-Sender: steveg1 AT mailhost DOT primenet DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Will pdksh work under windows nt?  Is signal support in b18 adequate?  I
compiled pdksh-5.2.12 using b18 successfully except I get an error message
complaining of an invalid switch in sort in siglist.sh (if I remove the
+2n +0n in sort everything compiles and I get ksh.exe except when I run it
I have problems). Is there a problem with sort in gnu-win32?  Here's the
offending code from siglist.sh--

sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort +2n +0n  |
    sed 's/^[0-9]* //' |
    awk 'BEGIN { last=0; nsigs=0; }
	{
	    if ($2 ~ /^[0-9][0-9]*$/ && $3 == ",") {
		n = $2;
		if (n > 0 && n != last) {
		    while (++last < n) {
			printf "\t{ %d , (char *) 0, `Signal %d` } ,\n",
last, last;
		    }
		    print;
		}
	    }
	}' |
    tr '`' '"' | grep -v '"DUMMY"'

I'd like to use ksh if possible so please give me any pointers.

Thanks

Steve G



-
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