[PATCH] Small improvement for 'setuptex'
![](https://secure.gravatar.com/avatar/8d1ce6613e211bf413ee8d8fc3953295.jpg?s=120&d=mm&r=g)
Hello. I'm using standard 'setuptex' file to set apropriate variables for my shell. I'd like to suggest small improvement for this file. See attached patch. P.S. The real use of this file is in my shell initialization scripts. It is sourced in specific way so I faced a situation when 'export' is required. Besides that unsetting unused variables also good habit to interactive session. --- WBR, Vladimir Lomov -- Violence is molding.
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
On Thu, Sep 22, 2011 at 15:46, Vladimir Lomov
Hello.
I'm using standard 'setuptex' file to set apropriate variables for my shell. I'd like to suggest small improvement for this file. See attached patch.
P.S. The real use of this file is in my shell initialization scripts. It is sourced in specific way so I faced a situation when 'export' is required. Besides that unsetting unused variables also good habit to interactive session.
Done, thanks. But I also unset TEXMFOS. Out of curiosity: why/when do you need export? Mojca
![](https://secure.gravatar.com/avatar/8d1ce6613e211bf413ee8d8fc3953295.jpg?s=120&d=mm&r=g)
Hello, ** Mojca Miklavec [2011-09-23 09:38:40 +0200]:
On Thu, Sep 22, 2011 at 15:46, Vladimir Lomov
wrote: Hello.
I'm using standard 'setuptex' file to set apropriate variables for my shell. I'd like to suggest small improvement for this file. See attached patch.
P.S. The real use of this file is in my shell initialization scripts. It is sourced in specific way so I faced a situation when 'export' is required. Besides that unsetting unused variables also good habit to interactive session.
Done, thanks.
But I also unset TEXMFOS. I wasn't sure about that variable. Quick search (grep -r 'TEXMFOS' CONTEXT_MINIMAL/*) shows me a lot places where that variable is used.
Out of curiosity: why/when do you need export? In short: for shell session set up.
IMHO, this is not right place to disscuss shell sessions, but I use `setuptex' for tmux window initialization (see here: https://github.com/vp1981/scripts/tree/master/tmux/scripts, files smoon{,3,4}, though I didn't test with export yet). --- WBR, Vladimir Lomov -- It is wise to keep in mind that neither success nor failure is ever final. -- Roger Babson
participants (2)
-
Mojca Miklavec
-
Vladimir Lomov