🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #42385

Re: Some problems with the latest MKS Toolkit

#42385
From: Robert Nelson
Date: Sat, 10 Feb 1990 07:48
62 lines
2783 bytes
cjoslyn@bingvaxu.cc.binghamton.edu (Cliff Joslyn) writes:


>I have MKS Toolkit v 3.1 running in configuration 5.  In 'inittab' I
>have 'switch -', then I load a mouse driver, Superkey, and Sidekick
>before running the shell.  I set ROOTDIR=c:/mks and run the shell with
>the '-R 0' option for partial disk swapping. 

>Problems:

>1) Most of my scripts break in an annoying yet functional way.  I use
>the Sidekick editor for most of my scripts.  For a script like this:

>	# junk.ksh
>	echo "Hello"

>I'd get:

>	% junk
>	Hello
>	junk.ksh 3: : not found

>Basically, it's telling me I've got a bad EOF, and it's trying to
>interpret a bad line.  Note that I have an extra carriage return
>following 'echo "Hello"'.

>Now here's the weird part: when I use a different editor, say
>MicroEmacs, this doesn't happen.  Further, uEmacs writes the file out
>with a size one more than SK, yet the look identical when I look at them
>in a hex editor.  Note that ksh doesn't fail in earlier versions,
>doesn't fail without that extra line at the EOF, and doesn't fail with:

>	% sh -c junk.ksh

This is caused by a "^Z" EOF character in your script.  For some reason MKS
changed something in the shell which doesn't like them anymore.  (Possibly
they are reading using binary mode and don't check for "^Z"?).  Anyways, the
shell is trying to exec() a program named "^Z" from line 3 of the script.

I had the same problem with scripts generated by PolyMake.  Fortunately it
has an option to not to place "^Z" in its files.  I am not familiar with
SideKick but you might see if there is a way you can turn the EOF character
off.

It sure took me a while to find that one :-(

>Any comments? I know that MKS listens in, so I'll hope for a reply
>before I call them with this report.
>-- 
>O------------------------------------------------------------------------->
>| Cliff Joslyn, Cybernetician at Large, cjoslyn@bingvaxu.cc.binghamton.edu
>| Systems Science, SUNY Binghamton, Box 1070, Binghamton NY 13901, USA
>V All the world is biscuit shaped. . .

Sorry I can't help you with the others.



-- 
Robert B. Nelson                               Systems Interface Inc.
Phone: (613) 727-5001                          223 Colonnade Road South
UUCP: uunet!mitel!sce!cognos!sysint!robert     Nepean, Ontario, CANADA, K2E 7K3
Technical Details
Message-ID: <444@sysint.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mitel!sce!cognos!sysint!robert
References: <2905@bingvaxu.cc.binghamton.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mitel!sce!cognos!sysint!robert
From: robert@sysint.UUCP (Robert Nelson)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Some problems with the latest MKS Toolkit
Message-ID: <444@sysint.UUCP>
Date: 10 Feb 90 07:48:22 GMT
References: <2905@bingvaxu.cc.binghamton.edu>
Organization: Systems Interface Inc, Ottawa, Ontario, Canada
Lines: 62