This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Pdksh compile using gnu-win32


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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]