🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #74

Re: ksh bugs

#74
From: Conor P. Cahill
Date: Mon, 21 Aug 1989 00:33
22 lines
1510 bytes
In article <177@uci.UUCP>, clay@uci.UUCP (News Administrator) writes:
> 
> Has anybody used the Korn shell for "unsharing"?  I tried it with the
> Microport Korn shell, expecting a speed increase, but found just the opposite.
> It did work, but was MUCH slower.

As I understand it, the capabilities of the korn shell that make it run
some shell commands (and command files) faster is that it has more built-ins
than the standard shell.  For example the korn shell has a built-in for
the echo command, built-in math operators and other such stuff.

However the cost of these additional built-ins (along with the command 
history, command line editing, etc...) is that the ksh is a much 
larger executable which takes longer to load.  This is probably why
it is slower for processing a shar.  

Another reason may be that you use the "ENV" mechanism of causing sub-shells
to read and process the .profile equivalent named in the ENV environment
variable.

Since shar's are set to work on most standard bourne shells I just use
"sh sharfile" whenever I am un-sharring a file.
Technical Details
Message-ID: <1035@virtech.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!virtech!cpcahil
References: <10166@fluke.COM> <10450@fluke.COM> <177@uci.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!virtech!cpcahil
From: cpcahil@virtech.UUCP (Conor P. Cahill)
Newsgroups: comp.bugs.sys5
Subject: Re: ksh bugs
Keywords: ksh
Message-ID: <1035@virtech.UUCP>
Date: 21 Aug 89 00:33:24 GMT
References: <10166@fluke.COM> <10450@fluke.COM> <177@uci.UUCP>
Distribution: na
Organization: Virtual Technologies Inc
Lines: 22