bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: texi2dvi issue with cd_dir


From: Gavin Smith
Subject: Re: texi2dvi issue with cd_dir
Date: Mon, 30 May 2016 20:20:42 +0100

On 30 May 2016 at 17:19,  <address@hidden> wrote:
> Dear developers,
>
> after updating to the new version
> $ texi2dvi --version
> texi2dvi (GNU Texinfo 6.1+dev) 7174
>
> of texi2dvi the paths to all files were screwed up. I traced this
> problem up to the function cd_dir(), which should, as far as I can
> imagine, update the variables in $path_vars. But the line
> ---
> 248 : eval "case \"$$cdd_dir\" in
>
> will append the PID in front of the string 'cdd_dir' and has never a '/'
> as iths first character.

Okay, that code is wrong: it should be

    eval "case \"\$$cdd_dir\" in

I believe.

> However, the prefix will be appended to
> relative paths, if cd'd into an absolute path.
>
> To reproduce the problem try to compile a document foo.tex with the
> command
> $ texi2pdf -D --build-dir=/tmp/bar foo.tex 2>bar

I see. I hadn't anticipated an absolute argument to --build-dir.
cd_dir is wrong if used with an absolute argument. I think it should
make all the variables containing paths absolute as well.

I've committed and uploaded a new version that is supposed to fix the
problem with absolute --build-dir.

> I could fix the problem for me by replacing all relative paths by
> absolute ones, but I think you had a reason (DOS?) for the update of
> variables instead of prefering absolute paths.

The reason that we changed it to use relative paths was that absolute
paths could contain spaces, and this didn't work for TeX. Using
relative paths instead was intended to be more reliable.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]