[NTG-context] updating context on Ubuntu 6.06

Taco Hoekwater taco at elvenkind.com
Thu Jul 27 10:46:29 CEST 2006



Hans Hagen wrote:
> Sanjoy Mahajan wrote:
> 
>>How does Windows quoting work?  Well, the whole story isn't needed,
>>but only how would this ruby line
>>
>>  `kpsewhich --expand-var '$TEXMFLOCAL'`
>>
>>differ on Windows relative to Unix?
>>  
> 
> the problem is that one never knows when the shell does things and when 

On unix, it is pretty easy to test what the shell does by pasting
the stuff you want to try after the 'echo' command. In this case:

   $ echo kpsewhich --expand-var '$TEXMFLOCAL'
   kpsewhich --expand-var $TEXMFLOCAL

I assume a similar trick is possible on windows, yes?

>>And the $@ -> "$@" change can be done in the Unix stubs only, so the
>>change won't affect Windows (which uses .bat files and a different
>>syntax).
>>  
> so in texmfstart:                
> 
>     f.write("#{program} #{callname} \"$@\"\012")

Yes. That reminds me: I assume on MacOsX the same stubs will work
except that \012 has to be changed into \015. Can someone test that?

Cheers, taco


More information about the ntg-context mailing list