1. Re: Debian 2.0 Linux & Euphoria
Tue, 27 Jul 1999, Patrick Quist wrote:
> Hy,
>
> How do you run EU in Linux ?
> And what´s that with the PATH, I found the file, but no Path ?
Once you have set a path so Linux can find the Euphoria files, you just type
exu filename.exu <enter>
Actually, if your Euphoria program file ends with .exu, you can just type exu
filename, and leave off the extension.
Just like with DOS, you need to let Linux know where to look for executable
programs. Also like DOS, that is the PATH environment variable. Unlike DOS,
you have to use different syntax to set environmental variables.
To see the current path, type echo $PATH<enter>
Watch the upper/lower case. It counts here!
In Linux, each user gets his or her own environment. So instead of
autoexec.bat, you put the commands to set the path in
/home/patrick/.bash_profile -- note the dot before bash_profile. That
indicates a "hidden" file that doesn't show in normal listings. To get a
directory which shows the hidden files, type ls -a (the -a turns on
hidden files)
Unlike DOS, you have to specifically export any new environmental variables to
the shell program So usually your .bash_profile looks something like this:
EUDIR=/home/irv/euphoria
PATH=/home/irv/euphoria/bin:$PATH
export PATH EUDIR
echo -e "\\033(U"
Change the irv to patrick, or whoever you are logged on as. (NOT ROOT!)
The only thing different between this and the autoexec is the "export", and
the next line "echo..." which sets up the DOS style line drawing characters.
Regards,
Irv