File: xshell.sh

package info (click to toggle)
vile 9.7ze-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,372 kB
  • ctags: 9,314
  • sloc: ansic: 95,840; lex: 11,395; sh: 3,416; perl: 3,200; cpp: 3,180; makefile: 982; awk: 271; sed: 14
file content (24 lines) | stat: -rwxr-xr-x 599 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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