Renamed package to ion1, and made it conflict with package 'ion'.
[ion1.git] / scripts / ion-runinxterm
blobe581388a7a01f09b4db8a7bf4878223a73f87dd4
1 #!/bin/sh
3 test "$XTERMCMD" || XTERMCMD="x-terminal-emulator"
5 if test $# -lt 1; then
6 echo error
7 exit 0
8 fi
10 if test "$1" = "--"; then
11 shift
12 eval "$@" || {
13 echo "Press enter..."
14 read nothing
16 exit
19 if test "$1" = "-T"; then
20 if test $# -lt 3; then
21 echo error
22 exit 0
24 title="$2"
25 shift 2
26 else
27 title="$1"
30 exec $XTERMCMD -T "$title" -e $0 -- "$@"