home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
vile-src.zip
/
vile-8.1
/
xshell.sh
< prev
Wrap
Linux/UNIX/POSIX Shell Script
|
1997-11-09
|
599b
|
25 lines
#!/bin/sh
# $Header: /usr/build/vile/vile/RCS/xshell.sh,v 1.4 1997/11/10 01:28:07 tom Exp $
#
# This script is designed to be used from xvile to support the $xshell variable.
# If you wish to have shell commands of the form
# :!command
# run in an xterm or equivalent, then set the $xshell variable like this:
# :setv $xshell="xterm -e xshell.sh"
#
# Xvile uses the -e option to specify to the xterm which shell command to run.
#
if test $# != 0 ; then
case "$1" in #(vi
-e) shift
;;
esac
fi
if test $# != 0 ; then
eval $@
echo Press return to exit
read reply
else
eval ${SHELL-/bin/sh}
fi