-jobname broken?

Jason Gross <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <CAKObCapNPcTMPD+F9rnFMwo8DP0f1MBqh4yqkLvprbX7sdJQGA@mail.gmail.com>
Hi,
Is there a way to set \jobname from the command-line?  latex --help claims
I should use -job-name=, but this doesn't work (and neither does -jobname):

$ (echo '\relax'; echo '\message{\jobname}') | latex -job-name=foo
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit)
**entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 68 languages loaded.

*texput
*
! Emergency stop.
<*> \message{\jobname}

No pages of output.
Transcript written on texput.log.


On Linux, I get:
$ (echo '\relax'; echo '\message{\jobname}') | latex -jobname=foo
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
**entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang,
noh
yphenation, loaded.

*foo
*
! Emergency stop.
<*> \message{\jobname}

No pages of output.
Transcript written on foo.log.


Thanks,
Jason
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.