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   
Linux/UNIX/POSIX Shell Script  |  1997-11-09  |  599b  |  25 lines

  1. #!/bin/sh
  2. # $Header: /usr/build/vile/vile/RCS/xshell.sh,v 1.4 1997/11/10 01:28:07 tom Exp $
  3. #
  4. # This script is designed to be used from xvile to support the $xshell variable.
  5. # If you wish to have shell commands of the form
  6. #    :!command
  7. # run in an xterm or equivalent, then set the $xshell variable like this:
  8. #    :setv $xshell="xterm -e xshell.sh"
  9. #
  10. # Xvile uses the -e option to specify to the xterm which shell command to run.
  11. #
  12. if test $# != 0 ; then
  13.     case "$1" in #(vi
  14.     -e)    shift
  15.         ;;
  16.     esac
  17. fi
  18. if test $# != 0 ; then
  19.     eval $@
  20.     echo Press return to exit
  21.     read reply
  22. else
  23.     eval ${SHELL-/bin/sh}
  24. fi
  25.