delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
From: | David Abrahams <dave AT boost-consulting DOT com> |
Subject: | bug in texi2dvi, and hack patch |
Date: | Sat, 15 Jan 2005 13:42:40 -0500 |
Lines: | 43 |
Message-ID: | <csbo8i$hql$1@sea.gmane.org> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | 146-115-127-135.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com |
User-Agent: | Mozilla Thunderbird 1.0 (Windows/20041206) |
Cc: | cygwin-patches AT cygwin DOT com |
X-IsSubscribed: | yes |
The latest /bin/texi2dvi contains (at line 102): # Systems which define $COMSPEC or $ComSpec use semicolons to separate # directories in TEXINPUTS. if test -n "$COMSPEC$ComSpec"; then path_sep=";" else path_sep=":" fi I think I know what this is *trying* to accomplish, but I think it's misguided. At least on my system, all the environment variables defined for my NT shell also show up in Cygwin, appropriately translated to use ":" separators. So the above messes everything up when findprog(), shown below, tries to locate the "tex" program: findprog () { foundprog=false for dir in `echo $PATH | tr "$path_sep" " "`; do if test -x "$dir/$1"; then # does anyone still need test -f? foundprog=true break fi done $foundprog } Paths end up being broken at spaces. I'm actually a little concerned about the code above because it seems to me that even after we fix the path_sep problem it will fail to work correctly with paths containing spaces. I'm certain it's not the right long-term fix, but the little hack patch I needed to get going again was to change line 105 from: path_sep=";" to path_sep=":" -- Dave Abrahams Boost Consulting http://www.boost-consulting.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |