ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* texexec command line switches missing in ruby version
@ 2006-09-26 12:21 Ralf Schmitt
  2006-09-26 12:29 ` Hans Hagen
  2006-09-26 12:35 ` Ralf Schmitt
  0 siblings, 2 replies; 11+ messages in thread
From: Ralf Schmitt @ 2006-09-26 12:21 UTC (permalink / raw)


Hi all,

the ruby version of texexec is missing some command line switches I have
been using. I'm missing --result (however, I could live without that)
and especially --mode and --passon. Are there any workarounds?
Also, texexec doesn't complain when given a command line switch, which
it doesn't understand.

Regards,
- Ralf

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-26 12:21 texexec command line switches missing in ruby version Ralf Schmitt
@ 2006-09-26 12:29 ` Hans Hagen
  2006-09-26 12:35 ` Ralf Schmitt
  1 sibling, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2006-09-26 12:29 UTC (permalink / raw)


Ralf Schmitt wrote:
> Hi all,
>
> the ruby version of texexec is missing some command line switches I have
> been using. I'm missing --result (however, I could live without that)
> and especially --mode and --passon. Are there any workarounds?
>   
hm, mode and result should work (TeXExec | version 6.2.0 - 1997-2006))
> Also, texexec doesn't complain when given a command line switch, which
> it doesn't understand.
>
>   
on the todo list 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-26 12:21 texexec command line switches missing in ruby version Ralf Schmitt
  2006-09-26 12:29 ` Hans Hagen
@ 2006-09-26 12:35 ` Ralf Schmitt
  2006-09-26 16:29   ` Hans Hagen
  2006-09-27  4:02   ` Sanjoy Mahajan
  1 sibling, 2 replies; 11+ messages in thread
From: Ralf Schmitt @ 2006-09-26 12:35 UTC (permalink / raw)


Ralf Schmitt wrote:
> Hi all,
> 
> the ruby version of texexec is missing some command line switches I have
> been using. I'm missing --result (however, I could live without that)
> and especially --mode and --passon. Are there any workarounds?

Apparently I'm a bit mistaken:
--mode is working. --result is not. None is listed in texexec --help.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-26 12:35 ` Ralf Schmitt
@ 2006-09-26 16:29   ` Hans Hagen
  2006-09-26 17:28     ` Peter Rolf
  2006-09-27  4:02   ` Sanjoy Mahajan
  1 sibling, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2006-09-26 16:29 UTC (permalink / raw)


Ralf Schmitt wrote:
> Ralf Schmitt wrote:
>   
>> Hi all,
>>
>> the ruby version of texexec is missing some command line switches I have
>> been using. I'm missing --result (however, I could live without that)
>> and especially --mode and --passon. Are there any workarounds?
>>     
>
> Apparently I'm a bit mistaken:
> --mode is working. --result is not. None is listed in texexec --help.
>   
strange, since 

texexec test  --result=oeps

just works here. Do others have similar problems with --result? 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-26 16:29   ` Hans Hagen
@ 2006-09-26 17:28     ` Peter Rolf
  0 siblings, 0 replies; 11+ messages in thread
From: Peter Rolf @ 2006-09-26 17:28 UTC (permalink / raw)


Hans Hagen wrote:
> Ralf Schmitt wrote:
>> Ralf Schmitt wrote:
>>   
>>> Hi all,
>>>
>>> the ruby version of texexec is missing some command line switches I have
>>> been using. I'm missing --result (however, I could live without that)
>>> and especially --mode and --passon. Are there any workarounds?
>>>     
>> Apparently I'm a bit mistaken:
>> --mode is working. --result is not. None is listed in texexec --help.
>>   
> strange, since 
> 
> texexec test  --result=oeps
> 
> just works here. Do others have similar problems with --result? 
>
oeps works here (yesterdays beta)

texmfstart texexec --autopdf --result=oeps test

Peter

> Hans 
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-26 12:35 ` Ralf Schmitt
  2006-09-26 16:29   ` Hans Hagen
@ 2006-09-27  4:02   ` Sanjoy Mahajan
  2006-09-27  7:08     ` Ralf Schmitt
  1 sibling, 1 reply; 11+ messages in thread
From: Sanjoy Mahajan @ 2006-09-27  4:02 UTC (permalink / raw)


Ralf Schmitt <ralf@brainbot.com> wrote:
> Apparently I'm a bit mistaken:
> --mode is working. --result is not. None is listed in texexec --help.

I haven't noticed problems with those.  But could you post a short test
file and the full command line that you use?  Then I can test it here
(running Linux, not sure if that's what you are running).

I have noticed that --passon hasn't been working since I switched from
perl to ruby texexec.  I used to use to turn on -file-line-error to get
an error output format that more closely matches what a C compiler
produces, and is therefore easier for Emacs to parse in a *compilation*
buffer.

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   -- Bertrand de Jouvenal

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-27  4:02   ` Sanjoy Mahajan
@ 2006-09-27  7:08     ` Ralf Schmitt
  2006-09-27 11:59       ` Sanjoy Mahajan
  0 siblings, 1 reply; 11+ messages in thread
From: Ralf Schmitt @ 2006-09-27  7:08 UTC (permalink / raw)


Sanjoy Mahajan wrote:
> Ralf Schmitt <ralf@brainbot.com> wrote:
>> Apparently I'm a bit mistaken:
>> --mode is working. --result is not. None is listed in texexec --help.
> 
> I haven't noticed problems with those.  But could you post a short test
> file and the full command line that you use?  Then I can test it here
> (running Linux, not sure if that's what you are running).
> 

I'm also running linux. Complete typescript follows.

Regards,
- Ralf


Script started on Wed 27 Sep 2006 09:02:46 AM CEST
ralf@schrotti:~/tmp$ ls
^[[0m^[[0mt.tex^[[0m
^[[mralf@schrotti:~/tmp$ cat t.tex
\starttext
hello
\stoptext
ralf@schrotti:~/tmp$ ~/texmf/scripts/context/ruby/texmfstart.rb texexec
t.tex --  result bla.pdf
TeXExec | processing document 't.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file t.top
TeXExec | using randomseed 1402
TeXExec | tex engine: pdfetex
TeXExec | tex format: cont-en
TeXExec | progname: context
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 (/home/ralf/texmf/web2c/natural.tcx)
entering extended mode
(./t.tex

ConTeXt  ver: 2006.09.25 15:08 MK II  fmt: 2006.9.25  int: english/english

language        : language en is active
system          : cont-new loaded
(/home/ralf/texmf/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
)
system          : cont-old loaded
(/home/ralf/texmf/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/home/ralf/texmf/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(/home/ralf/texmf/tex/context/user/cont-sys.rme
(/home/ralf/texmf/tex/context/base/type-exa.tex)
(/home/ralf/texmf/tex/context/base/type-syn.tex)
(/home/ralf/texmf/tex/context/base/type-enc.tex)
(/home/ralf/texmf/tex/context/base/type-siz.tex)
(/home/ralf/texmf/tex/context/base/type-map.tex)
(/home/ralf/texmf/tex/context/base/type-spe.tex)
(/home/ralf/texmf/tex/context/base/type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3
de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3
fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3
it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3
nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3
sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : t.top loaded
(./t.top
specials        : loading definition file tpd
(/home/ralf/texmf/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(/home/ralf/texmf/tex/context/base/spec-fdf.tex
(/home/ralf/texmf/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
)
specials        : fdf,tpd loaded
) (/home/ralf/texmf/tex/context/base/sort-def.tex)
(/home/ralf/texmf/tex/context/base/sort-lan.tex)
systems         : begin file t at line 1
fonts           : resetting map file list
fonts           : using map file: texnansi-public-lm
fonts           : using map file: original-base
fonts           : using map file: ec-public-lm
fonts           : using map file: ec-base
fonts           : using map file: 8r-base
fonts           : using map file: t5-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-ams-euler
fonts           : using map file: original-public-lm
(/home/ralf/texmf/tex/context/base/pdfr-ec.tex)
[1.1{/home/ralf/texmf/fonts/map
/pdftex/context/original-empty.map}{/home/ralf/texmf/fonts/map/pdftex/context/t

exnansi-public-lm.map}{/home/ralf/texmf/fonts/map/pdftex/context/original-base.

map}{/home/ralf/texmf/fonts/map/pdftex/context/ec-public-lm.map}{/home/ralf/tex

mf/fonts/map/pdftex/context/ec-base.map}{/home/ralf/texmf/fonts/map/pdftex/cont

ext/8r-base.map}{/home/ralf/texmf/fonts/map/pdftex/context/t5-base.map}{/home/r

alf/texmf/fonts/map/pdftex/context/original-ams-base.map}{/home/ralf/texmf/font

s/map/pdftex/context/original-ams-euler.map}{/home/ralf/texmf/fonts/map/pdftex/

context/original-public-lm.map}]
systems         : end file t at line 3
system          : cont-err loaded
(/home/ralf/texmf/tex/context/base/cont-err.tex

> User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used
instead. <

)
){/usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc}</usr/share/texmf/fonts/type1

/public/lm/lmr12.pfb>
Output written on t.pdf (1 page, 22107 bytes).
Transcript written on t.log.
TeXUtil | parsing file t.tui
TeXUtil | shortcuts : 169
TeXUtil | expansions: 308
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 1
TeXUtil | temporary files: 0
TeXUtil | commands: 19
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | TeX run 2
TeXExec | writing option file t.top
TeXExec | using randomseed 1402
TeXExec | tex engine: pdfetex
TeXExec | tex format: cont-en
TeXExec | progname: context
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 (/home/ralf/texmf/web2c/natural.tcx)
entering extended mode
(./t.tex

ConTeXt  ver: 2006.09.25 15:08 MK II  fmt: 2006.9.25  int: english/english

language        : language en is active
system          : cont-new loaded
(/home/ralf/texmf/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
)
system          : cont-old loaded
(/home/ralf/texmf/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/home/ralf/texmf/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(/home/ralf/texmf/tex/context/user/cont-sys.rme
(/home/ralf/texmf/tex/context/base/type-exa.tex)
(/home/ralf/texmf/tex/context/base/type-syn.tex)
(/home/ralf/texmf/tex/context/base/type-enc.tex)
(/home/ralf/texmf/tex/context/base/type-siz.tex)
(/home/ralf/texmf/tex/context/base/type-map.tex)
(/home/ralf/texmf/tex/context/base/type-spe.tex)
(/home/ralf/texmf/tex/context/base/type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3
de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3
fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3
it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3
nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3
sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : t.top loaded
(./t.top
specials        : loading definition file tpd
(/home/ralf/texmf/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(/home/ralf/texmf/tex/context/base/spec-fdf.tex
(/home/ralf/texmf/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
)
specials        : fdf,tpd loaded
) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo) (./t.tuo)
(./t.tuo) (./t.tuo) (./t.tuo)
(/home/ralf/texmf/tex/context/base/sort-def.tex)
(/home/ralf/texmf/tex/context/base/sort-lan.tex) (./t.tuo) (./t.tuo)
systems         : begin file t at line 1
fonts           : resetting map file list
fonts           : using map file: texnansi-public-lm
fonts           : using map file: original-base
fonts           : using map file: ec-public-lm
fonts           : using map file: ec-base
fonts           : using map file: 8r-base
fonts           : using map file: t5-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-ams-euler
fonts           : using map file: original-public-lm
(/home/ralf/texmf/tex/context/base/pdfr-ec.tex)
[1.1{/home/ralf/texmf/fonts/map
/pdftex/context/original-empty.map}{/home/ralf/texmf/fonts/map/pdftex/context/t

exnansi-public-lm.map}{/home/ralf/texmf/fonts/map/pdftex/context/original-base.

map}{/home/ralf/texmf/fonts/map/pdftex/context/ec-public-lm.map}{/home/ralf/tex

mf/fonts/map/pdftex/context/ec-base.map}{/home/ralf/texmf/fonts/map/pdftex/cont

ext/8r-base.map}{/home/ralf/texmf/fonts/map/pdftex/context/t5-base.map}{/home/r

alf/texmf/fonts/map/pdftex/context/original-ams-base.map}{/home/ralf/texmf/font

s/map/pdftex/context/original-ams-euler.map}{/home/ralf/texmf/fonts/map/pdftex/

context/original-public-lm.map}]
systems         : end file t at line 3
system          : cont-err loaded
(/home/ralf/texmf/tex/context/base/cont-err.tex

> User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used
instead. <

)
){/usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc}</usr/share/texmf/fonts/type1

/public/lm/lmr12.pfb>
Output written on t.pdf (1 page, 22107 bytes).
Transcript written on t.log.
TeXUtil | parsing file t.tui
TeXUtil | shortcuts : 169
TeXUtil | expansions: 308
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 1
TeXUtil | temporary files: 0
TeXUtil | commands: 19
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | processing document 'bla.pdf'
TeXExec | no ctx file found
TeXExec | nothing to process
TeXExec | runtime: 0.808911
ralf@schrotti:~/tmp$ ls -la
^[[0mtotal 72
drwxr-xr-x   2 ralf ralf   256 2006-09-27 09:03 ^[[01;34m.^[[0m
drwxr-xr-x 150 ralf ralf  8464 2006-09-27 08:53 ^[[01;34m..^[[0m
-rw-r--r--   1 ralf ralf     5 2006-09-27 09:03 ^[[0mmpgraph.mp^[[0m
-rw-r--r--   1 ralf ralf  4397 2006-09-27 09:03 ^[[0mt.log^[[0m
-rw-r--r--   1 ralf ralf     5 2006-09-27 09:03 ^[[0mt-mpgraph.mp^[[0m
-rw-r--r--   1 ralf ralf 22107 2006-09-27 09:03 ^[[0mt.pdf^[[0m
-rw-r--r--   1 ralf ralf    27 2006-09-27 09:02 ^[[0mt.tex^[[0m
-rw-r--r--   1 ralf ralf   248 2006-09-27 09:03 ^[[0mt.tmp^[[0m
-rw-r--r--   1 ralf ralf 12084 2006-09-27 09:03 ^[[0mt.tui^[[0m
-rw-r--r--   1 ralf ralf   740 2006-09-27 09:03 ^[[0mt.tuo^[[0m

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-27  7:08     ` Ralf Schmitt
@ 2006-09-27 11:59       ` Sanjoy Mahajan
  2006-09-27 12:22         ` Ralf Schmitt
  0 siblings, 1 reply; 11+ messages in thread
From: Sanjoy Mahajan @ 2006-09-27 11:59 UTC (permalink / raw)


I'm not sure if your command got mangled by the mailer disliking long
lines, but it looks like you have this line:

  ralf@schrotti:~/tmp$ ~/texmf/scripts/context/ruby/texmfstart.rb texexec t.tex --  result bla.pdf

i.e. something like "texexec t.tex -- result bla.pdf"

The texexec man entry, I think for the perl version, says:

       --result=FILENAME
              Allows you to change the  basename of the  output
              file.   See --mode for an example.

And this command works:

  texexec t.tex --result=bla

Although at the end it says:

  TeXExec | renaming t to bla
  TeXExec | restoring t
  TeXExec | fatal error No such file or directory - t.tuo

Is the last line anything to worry about, perhaps in a more complex
test file that needed the .tuo file?

By the way, I use these two executable scripts to shorten the command
lines:

$ cat /home/sanjoy/bin/texmfstart
#!/bin/bash
ruby `kpsewhich --format=texmfscripts texmfstart.rb` "$@"

$ cat /home/sanjoy/bin/texexec
#!/bin/sh
texmfstart texexec.rb "$@"

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-27 11:59       ` Sanjoy Mahajan
@ 2006-09-27 12:22         ` Ralf Schmitt
  2006-09-27 12:39           ` Hans Hagen
  2006-09-27 13:23           ` Sanjoy Mahajan
  0 siblings, 2 replies; 11+ messages in thread
From: Ralf Schmitt @ 2006-09-27 12:22 UTC (permalink / raw)


Sanjoy Mahajan wrote:
> I'm not sure if your command got mangled by the mailer disliking long
> lines, but it looks like you have this line:
> 
>   ralf@schrotti:~/tmp$ ~/texmf/scripts/context/ruby/texmfstart.rb texexec t.tex --  result bla.pdf
> 
> i.e. something like "texexec t.tex -- result bla.pdf"
> 

it was texexec t.tex --result bla.pdf (i.e. without the space between --
and result).


> The texexec man entry, I think for the perl version, says:
> 
>        --result=FILENAME
>               Allows you to change the  basename of the  output
>               file.   See --mode for an example.
> 
> And this command works:
> 
>   texexec t.tex --result=bla
> 

same here. the equal sign was missing from my command line (the perl
version works without an equal sign).

> Although at the end it says:
> 
>   TeXExec | renaming t to bla
>   TeXExec | restoring t
>   TeXExec | fatal error No such file or directory - t.tuo
> 
> Is the last line anything to worry about, perhaps in a more complex
> test file that needed the .tuo file?
> 
> By the way, I use these two executable scripts to shorten the command
> lines:
> 
> $ cat /home/sanjoy/bin/texmfstart
> #!/bin/bash
> ruby `kpsewhich --format=texmfscripts texmfstart.rb` "$@"
> 
> $ cat /home/sanjoy/bin/texexec
> #!/bin/sh
> texmfstart texexec.rb "$@"
> 

Thanks, I'm using them too, but I remember there was some confusion
about "$@" versus $@ in this command.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-27 12:22         ` Ralf Schmitt
@ 2006-09-27 12:39           ` Hans Hagen
  2006-09-27 13:23           ` Sanjoy Mahajan
  1 sibling, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2006-09-27 12:39 UTC (permalink / raw)


Ralf Schmitt wrote:
>> And this command works:
>>
>>   texexec t.tex --result=bla
>>
>>     
that's the intended usage (using the = sign)
> same here. the equal sign was missing from my command line (the perl
> version works without an equal sign).
>   
hm, i never tested that and i also never assumed that -)

when i started using ruby there was no proper command line handler so i 
wrote one myself; that one also hooks nicely into other pieces of the 
system now
>
>> By the way, I use these two executable scripts to shorten the command
>> lines:
>>
>> $ cat /home/sanjoy/bin/texmfstart
>> #!/bin/bash
>> ruby `kpsewhich --format=texmfscripts texmfstart.rb` "$@"
>>
>> $ cat /home/sanjoy/bin/texexec
>> #!/bin/sh
>> texmfstart texexec.rb "$@"
>>
>>     
>
>   
normally texmfstart is a bit faster because it passes on info to the sub 
processes about the env used and so

Hans

 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: texexec command line switches missing in ruby version
  2006-09-27 12:22         ` Ralf Schmitt
  2006-09-27 12:39           ` Hans Hagen
@ 2006-09-27 13:23           ` Sanjoy Mahajan
  1 sibling, 0 replies; 11+ messages in thread
From: Sanjoy Mahajan @ 2006-09-27 13:23 UTC (permalink / raw)


> > $ cat /home/sanjoy/bin/texmfstart
> > #!/bin/bash
> > ruby `kpsewhich --format=texmfscripts texmfstart.rb` "$@"
> > 
> > $ cat /home/sanjoy/bin/texexec
> > #!/bin/sh
> > texmfstart texexec.rb "$@"
> > 
> 
> Thanks, I'm using them too, but I remember there was some confusion
> about "$@" versus $@ in this command.

"$@" is correct.  $@ passes on arguments one word at a time whereas
"$@" will wrap each argument in quotes.  I know that's a cloudy
explanation, so here's an example of the difference.  If you have a
filename with spaces (gah!) like "abc def.tex", then

  texexec "abc def.tex"

will execute (with "$@")

  texmfstart texexec.rb "abc def.tex"  # good

whereas using $@ it would execute

  texmfstart texexec.rb abc def.tex   # not good!

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-09-27 13:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-26 12:21 texexec command line switches missing in ruby version Ralf Schmitt
2006-09-26 12:29 ` Hans Hagen
2006-09-26 12:35 ` Ralf Schmitt
2006-09-26 16:29   ` Hans Hagen
2006-09-26 17:28     ` Peter Rolf
2006-09-27  4:02   ` Sanjoy Mahajan
2006-09-27  7:08     ` Ralf Schmitt
2006-09-27 11:59       ` Sanjoy Mahajan
2006-09-27 12:22         ` Ralf Schmitt
2006-09-27 12:39           ` Hans Hagen
2006-09-27 13:23           ` Sanjoy Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).