[tex-live] texconfig-sys init fails in bin directory

Hartmut Henkel hartmut_henkel at gmx.de
Tue May 11 22:03:24 CEST 2010

```Hi,

just found by accident that when running "texconfig-sys init" within the
/usr/local/texlive/2009/bin/x86_64-linux directory, i get these two
failures:

This is a summary of all `failed' messages:
`pdftex -ini  -jobname=amstex -progname=amstex -translate-file=cp227.tcx *amstex.ini' failed
`pdftex -ini  -jobname=eplain -progname=eplain -translate-file=cp227.tcx *eplain.ini' failed

Both seem to have a similar cause. The 1st line fails, since in file
amstex.ini there is "\input amstex", and instead of file "amstex.tex"
actually the "amstex" binary is read, giving such an error:

! Text line contains an invalid character.
l.1 ^^?
ELF^^B^^A^^A^^@^^@^^@^^@^^@^^@^^@^^@^^@^^B^^@>^^@^^A^^@^^@^^@P3@^^@^^...

But when running texconfig-sys outside the bin/x86_64-linux directory,
everything is fine, the file "amstex.tex" is used.

No idea if it's worthwile to fix this, but i also wonder that when there
is a file "foo" and a file "foo.tex" in some directory, and i do "\input
foo" in that directory, the file "foo.tex" is read, so in this case the
extension ".tex" is used. But not in the above case, where the binary
"amstex" has precendence over "amstex.tex".

Regards, Hartmut
```