From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: Bibtex and latex export Date: Thu, 07 Oct 2010 09:29:59 -0400 Message-ID: <18908.1286458199@gamaville.dokosmarshall.org> References: <4C9122FE.1080306@ccbr.umn.edu> <87aamra78p.fsf@mundaneum.com> <87pqvntldc.wl%ucecesf@ucl.ac.uk> <87d3rni6ea.fsf@Rainer.invalid> <87mxqqpjcf.wl%ucecesf@ucl.ac.uk> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=54661 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3qYR-0001fx-DW for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 09:30:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3qY7-0002Ty-Jn for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 09:30:21 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:51377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3qY7-0002TY-Gf for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 09:30:19 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L9X00DMK9HZB120@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 08:30:00 -0500 (CDT) In-reply-to: Message from Eric S Fraga of "Thu, 07 Oct 2010 08:12:16 BST." <87mxqqpjcf.wl%ucecesf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: e.fraga@ucl.ac.uk Cc: Achim Gratz , emacs-orgmode@gnu.org, nicholas.dokos@hp.com Eric S Fraga wrote: > On Wed, 06 Oct 2010 19:21:33 +0200, Achim Gratz wrote: > > > > Hi Eric, > > > > Eric S Fraga writes: > > > | /usr/bin/texi2dvi: Processing /home/ucecesf/.../file.tex ... > > > | egrep: Invalid range end > > > | /usr/bin/texi2dvi: cannot read .//home/ucecesf/.../file.tex, skipping. > > > > Something somewhere tries to make a local path from an absolute one by > > prepending "./", which fails (predictably). Is the input readable at > > the original path? Not sure the error message from egrep has to do with > > it or not, but it must be in any case one of the processes started by > > texi2dvi (does not show up on my system, I only have calls to grep when > > I trace it, but one of the sub-processes might still use it). I think > > texi2dvi also invokes shell scripts, so any funny configuration in the > > environment, especially where path points to, could throw it off. > > As far as I know, there is nothing out of the ordinary with my paths > etc (please note that the /.../ above was an edit on my part to hide a > rather long path). Any hints as to what I can do to explore this > would be most helpful. How can I get a trace on what texi2dvi is > doing? (sh -v /usr/bin/texi2dvi?) > There is an explicit egrep on line 1563 or thereabouts (my version says # texi2dvi --- produce DVI (or PDF) files from Texinfo (or (La)TeX) sources. # $Id: texi2dvi,v 1.104 2007/09/10 00:36:30 karl Exp $ at the top of the file): # If the COMMAND_LINE_FILENAME is not absolute (e.g., --debug.tex), # prepend `./' in order to avoid that the tools take it as an option. echo "$command_line_filename" | $EGREP '^(/|[A-z]:/)' >&6 \ || command_line_filename="./$command_line_filename" The regular expression seems a bit weird (upper case A to lower case z?), but I can't see off the top of my head how it gets tripped up. For tracing, try sh -x texi2dvi .... Nick