home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff342.lzh
/
SKsh
/
TinySKsh.doc
< prev
next >
Wrap
Text File
|
1990-04-15
|
3KB
|
199 lines
Tiny_SKsh Description
SKsh
A ksh-like Shell for the Amiga
Version 1.4
(Copyright) 1989, 1990
Steve Koren
March 19, 1990
Introduction
Tiny_SKsh is a version of SKsh which omits:
* Command line editing (including all SKsh supplied
features such as all three forms of filename completion,
window size smart horizontal scrolling, interactive
history search, etc).
* History
* Many builtin commands
However, it does provide all other features of SKsh such as:
* Control structures (if, for, case, etc)
* Tests ([ -f ram:foo ], etc)
* Piping, I/O redirection
* Aliases, shell functions
* etc.
Tiny_SKsh will be useful to people who:
* Wish to use an external command line editing facility,
such as a program which provides vi-style editing
* Wish to replace most of the SKsh supplied functions (such
as 'rm' and 'mv') with their own.
SKsh does not yet provide external equivalents to all builtin
commands, so tiny_SKsh will not function properly without some
customization effort. These external commands will eventually
be provided as part of the SKsh package.
SKsh Amiga Shell Page 2 Tiny_SKsh Description
How to tell if you are using tiny_SKsh
tiny_SKsh sets the value of a shell variable called "SIZE" to
"tiny". Normal SKsh sets it to "normal". Thus, a script or
function may test for this value to determine the shell under
which it is being run. For example, consider the following:
if [ "$SIZE" = 'normal' ]
then
COMPLIST='show calc3.0 graphics: excellence!:excellence!'
complist -a $COMPLIST
fi
In this case, the complist command will only be executed if
the script is not run under tiny_SKsh.
SKsh and tiny_SKsh differences
The following builtin commands are omitted from tiny_SKsh:
argcount basename cat chmod
complist date dirname extname
history info ls match
mem mkdir mv ps
rm rmdir sleep touch
whence which
In addition, the following options are meaningless:
+1, +e, +h, +C, +E, +I, +O
SKsh Amiga Shell Page 3 Tiny_SKsh Description