[tex-live] Missing quoting in tlmgr when making formats
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Wed May 8 17:31:35 CEST 2013
On Wed, May 8, 2013 at 4:39 PM, Norbert Preining <preining at logic.at> wrote:
> Hi Mojca,
>
> On Mi, 08 Mai 2013, Mojca Miklavec wrote:
>> doing it intentionally, to be able to spot such problems).
>
> No problem, thanks for reporting.
>
>> $errors += do_cmd_and_check("fmtutil$sysmode --byhyphen $lang");
>> because $lang may itself contain spaces and fmtutil treats it as if
>> there were several parameters present.
>
> Indeed.
>
> With a simple quoting in the above line
> $errors += do_cmd_and_check("fmtutil$sysmode --byhyphen \"$lang\"");
> that first problem should go away.
>
> I tried it, but then fmtutil(-sys) complained:
>
> fmtutil-sys --byhyphen "/home/norbert/tl/i 2013/texmf-var/tex/generic/config/language.dat" failed (status 1), output:
> grep: 2013/texmf-var/tex/generic/config/language.dat: No such file or directory
> grep: 2013/texmf-var/tex/generic/config/language.dat: No such file or directory
> grep: 2013/texmf-var/tex/generic/config/language.dat: No such file or directory
>
> Changing the line 934 of fmtutil.sh to
> match_cmd="echo \"\$this_hyphenfile\" | grep \"$hyphenfile\" >/dev/null"
> (i.e., adding quotatin there, too) I get it more or less working
> (besides the fact that some formats do not build!)
>
> Mojca, attached is the full patch, can you please try if that helps in
> your case, too? Apply with patch -p2 in your 2013 directory.
Yes, it solves this problem. I'll let you know in case that I stumble
upon others.
There are a couple other places which look similarly suspicious
though, for example:
do_cmd_and_check("fmtutil-sys --byhyphen $dest");
Mojca
More information about the tex-live
mailing list