#! /bin/csh -f
set noglob

if ( $?DISPLAY ) then
# if ( $?OPENWINHOME ) then
#   set bin = 'xbin'                # XVIEW version
# else
    set bin = 'mbin'                # MOTIF version
# endif
else
    set bin = 'cbin'                # CURSES version
endif

set a = $0
set b = $a:h
set c = $a:t

if ( $b == $c ) then
   set p = $cwd
else
   set p = $b
endif

if ( $?DISPLAY ) then
  $p/$bin/linux/xed  $argv
else
  $p/$bin/linux/xed  $argv
  stty sane
endif
