[NTG-context] Problem with SETUPTEX and KSH93

Alessandro Perucchi alessandro at perucchi.org
Mon Aug 20 11:04:41 CEST 2012


Hello,

I'm new to ConTeXt, and I find it great!

I've done the standalone installation on my Linux box. For many reasons, 
I don't use bash, but ksh since all my customers are using ksh as there 
shell.

Nevertheless, the setuptex is not working for me.
Of course it works if I say

. ~/context/tex/setuptex ~/context/tex

But I would like to have it in the short form:

. ~/context/tex/setuptex

So for that in ksh, I needed to correct the setuptex like that:

line 99:
if [ z"$BASH_SOURCE" != z ]; then
         SCRIPTPATH="$BASH_SOURCE"
else
         if [ z"${.sh.version}" != z ]; then
                 SCRIPTPATH="${.sh.file}"
         else
                 SCRIPTPATH="$0"
         fi
fi

And now, it works for ksh93, and all the other shells should be unaffected.

Would it be possible to correct it? Or if someone has a better idea, 
then I'm also ok, as long as it works for ksh.

Sincerely yours,
Alessandro Perucchi


More information about the ntg-context mailing list