[comp.os.msdos.programmer] Data Light sh for MS-DOS

lee@chsun1.uchicago.edu (dwight lee) (07/12/90)

I've obtained a copy of a Bourne shell for MS-DOS which appears to be by an
organization called Data Logic Limited.  The ZIP file which I received was
said to be ftp'ed from SIMTEL20 originally.

Problem 1: The ZIP file was missing its README, which might have contained
valuable setup information.

Problem 2: Deciding to try it out anyway, I was unable to get any kind of
shell script to run.  I followed the manual's #!sh convention and tried
putting a shell script in the PATH as both script and script.sh.  No dice.
I also tried using scripts with line separated by only nl instead of cr/nl.
I did get a script to run with the dot (here-is?) ie ". script".

Problem 3: The sh.man seems to be very incomplete.  A sample profile.sh file
appears to use undocumented features.  The profile.sh's use of PATH
contradicts the manual's decription also.

I have been assuming that this shell is PD or shareware.  If I am incorrect,
please let me know.  If it is indeed PD/shareware, I am interested in knowing
where I can obtain a complete distribution.  Also, I haven't seen any address
or phone number for Data Logic Limited in the files I have.

If a complete distribution is not available (or even if it is), could someone
using this shell explain to me how to get a shell script up and running?

Your assistance is appreciated.

Dwight Lee
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Dwight A Lee / 416 Annie Glidden Rd #B6 / DeKalb IL 60115 / 815-758-1389
lee@chsun.uchicago.edu / "I am not the only dust my mother raised" - TMBG
I speak only for myself. / tCS/BB / Font

mlord@bwdls58.bnr.ca (Mark Lord) (07/12/90)

In article <lee.647721888@chsun1> lee@chsun1.uchicago.edu (dwight lee) writes:
>I've obtained a copy of a Bourne shell for MS-DOS which appears to be by an
>organization called Data Logic Limited.  The ZIP file which I received was
>said to be ftp'ed from SIMTEL20 originally.

I know the one, and have it running at this moment in another desqview window.

>Problem 1: The ZIP file was missing its README, which might have contained
>valuable setup information.

Here is the ls -l output of the extracted archive:

---rw-       24  Feb 19 17:04  extend.lst
---rw-       14  Feb 19 17:04  l
---rw-      284  Feb 19 17:03  manifest
---rw-      206  Feb 19 17:03  notes
---rw-      371  Feb 19 17:31  profile.sh
---rw-    42567  Feb 19 17:51  sh.1
---rwx    96981  Feb 19 17:28  sh.exe
---rw-    50861  Feb 19 18:26  sh.man

>Problem 2: Deciding to try it out anyway, I was unable to get any kind of
>shell script to run...

Try this (worked for me just now):  BEFORE invoking the SH, 

	SET SHELL=./SH

This sets an environment variable to tell SH where to look for a secondary
copy of itself for running shell scripts with.  The default is c:/bin/sh

>I have been assuming that this shell is PD or shareware.

I found the following in the sh.1 file:

.\" MS-DOS SHELL - Copyright (c) 1990 Data Logic Limited
.\"
.\" This code is subject to the following copyright restrictions:
.\"
.\" 1.  Redistribution and use in source and binary forms are permitted
.\"     provided that the above copyright notice is duplicated in the
.\"     source form and the copyright notice in file sh6.c is displayed
.\"     on entry to the program.
.\"
.\" 2.  The sources (or parts thereof) or objects generated from the sources
.\"     (or parts of sources) cannot be sold under any circumstances.
.\"
.\"    $Header: sh.1 1.2 90/02/16 16:58:27 MS_user Exp $

There is complete source code for this around somewhere also, it was posted
to one of the .sources groups a while back.  I have an old copy, but I don't
think it is as up to date as this binary copy.

Have fun.
-- 
 ___Mark S. Lord__________________________________________
| ..uunet!bnrgate!bmerh614!mlord | Climb Free Or Die (NH) |
| ..uunet!bnrgate!mlord%bmerh614 | Personal views only.   |
|________________________________|________________________|

mlord@bwdls58.bnr.ca (Mark Lord) (07/12/90)

In article <3770@bwdls58.UUCP< mlord@bwdls58.bnr.ca (Mark Lord) writes:
<In article <lee.647721888@chsun1> lee@chsun1.uchicago.edu (dwight lee) writes:
<
<>Problem 2: Deciding to try it out anyway, I was unable to get any kind of
<>shell script to run...
<
<Try this (worked for me just now):  BEFORE invoking the SH, 
<
<	SET SHELL=./SH
<
<This sets an environment variable to tell SH where to look for a secondary
<copy of itself for running shell scripts with.  The default is c:/bin/sh

I forgot to mention.. be sure to specify the complete path of the shell
script, unless you have set up the PATH variable correctly (possibly BEFORE
entering SH, as with SHELL above).

If the script is in the current directory, then a simple relative path 
should suffice.  I used a script called JUNK as follows:  ./JUNK
-- 
 ___Mark S. Lord__________________________________________
| ..uunet!bnrgate!bmerh614!mlord | Climb Free Or Die (NH) |
| ..uunet!bnrgate!mlord%bmerh614 | Personal views only.   |
|________________________________|________________________|