[tex-k] Web2C: "-parse-first-line" does not work in on-line file prompt.

Igor Liferenko igor.liferenko at gmail.com
Tue Sep 18 08:34:22 CEST 2018


Hi all,

Below are two tests - in first test we show that the option
"-parse-first-line" works. In the second test we show that it
does not work if file name is input online.

Why "Test 2" does not work?

======== Prepare format and data =============

1. wget http://raw.github.com/igor-liferenko/lhplain/master/lhplain.ini

2. tex -ini -enc lhplain.ini >/dev/null

3. echo -e '%&lhplain\nы\\bye' >test.tex

--------- Test 1 ------------------------

$ tex -parse-first-line test
This is TeX, Version 3.14159265 (preloaded format=lhplain)
(./test.tex [1] )
Output written on test.dvi (1 page, 212 bytes).
Transcript written on test.log.

$ cat test.log
This is TeX, Version 3.14159265 (preloaded format=lhplain 2018.8.14)  18 SEP 2018 13:18
 %&-line parsing enabled.
**test
(./test.tex [1] )
Output written on test.dvi (1 page, 212 bytes).

------------- Test 2 --------------------

$ tex -parse-first-line tets
This is TeX, Version 3.14159265 (preloaded format=tex)
! I can't find file `tets'.
<*> tets
        
(Press Enter to retry, or Control-D to exit)
Please type another input file name: test
(./test.tex [1] )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 204 bytes).
Transcript written on test.log.

$ cat test.log
This is TeX, Version 3.14159265 (preloaded format=tex 2018.8.14)  18 SEP 2018 13:21
 %&-line parsing enabled.
**tets
(./test.tex
Missing character: There is no ^^d1 in font cmr10!
Missing character: There is no ^^8b in font cmr10!
 [1] )
Output written on test.dvi (1 page, 204 bytes).

Regards,
Igor


More information about the tex-k mailing list