[NTG-context] Problem with SETUPTEX and KSH93

2012-08-20 Thread Alessandro Perucchi

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with SETUPTEX and KSH93

2012-08-20 Thread Mojca Miklavec
On Mon, Aug 20, 2012 at 11:04 AM, Alessandro Perucchi wrote:
 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

Can you please try again?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Problem with SETUPTEX and KSH93

2012-08-20 Thread Alessandro Perucchi

On Mon, Aug 20, 2012 at 12:34 PM, Mojca Miklavec wrote:


Can you please try again?

Mojca


Hello Mojca,

thanks :-) it works wonderfully!
Now, I don't have to patch setuptex each time I'm updating ConTeXt :-D

Sincerely yours,
Alessandro

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___