#!/bin/sh
# Warning : some old versions of sh dont allow inline function definitions
# like do_scilex()... . In this case use a system V sh (sh5)

# Copyright INRIA
# Modified by tom, for the MuPAD<-->Scilab link

# For the Scilab UDX module and the SCI environment variable
SCI_ARCH=`$MuPAD_ROOT_PATH/share/bin/sysinfo`
export SCI_ARCH

if test "$MANCHAPTERS" = ""; then
  MANCHAPTERS=$SCI/man/Chapters
fi
export  MANCHAPTERS
VERSION="Scilab-2.6"
export VERSION

PATH=$PATH:$SCI:$SCI/util
export PATH
NETHELPDIR=$SCI/X11_defaults
export NETHELPDIR

#tty -s && stty kill '^U' intr '^C' erase '^H' quit '^\' eof '^D' susp '^Z'
exec $SCI/bin/scilex "$@"  < /dev/null > /dev/null 2>&1 


