Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 21 Dec 2004 12:46:56 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Jan Nieuwenhuizen cc: cygwin AT cygwin DOT com Subject: Re: Tetex-2.0.2-13: texdoc bug/suggestion In-Reply-To: <87ekhjiqmw.fsf@peder.flower> Message-ID: References: <873by0alo5 DOT fsf AT peder DOT flower> <87ekhjiqmw DOT fsf AT peder DOT flower> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 21 Dec 2004, Jan Nieuwenhuizen wrote: > Igor Pechtchanski writes: > > > AFAIK, there's no "see" under Cygwin. It would probably be best to use > > cygstart in any case. FWIW, the same goes for both _pdf and _ps. > > Ok. > > > BTW, why not patch texdoc? > > Because that's not the right fix? It is for Cygwin... Could this be part of the Cygwin-specific patch? > There's no platform specific code in texdoc, so upstream won't take a > Cygwin specfic patch. I'd say that : ${TEXDOCVIEW_html='netscape -remote openURL'"'(%s)'"' 2>/dev/null || netscape %s &'} is no less platform-specific than 'cygstart %s'... The code could at least check whether netscape is available on the system. FWIW, teTeX used to do this -- the /usr/bin/texdoc from my tetex-1.0.7 installation on RedHat 9 has if [ -x /usr/bin/galeon ] then : ${TEXDOCVIEW_html='galeon %s &'} elif [ -x /usr/bin/mozilla ] then : ${TEXDOCVIEW_html='mozilla file://%s &'} else : ${TEXDOCVIEW_html='netscape %s &'} fi > The right fix seems to be adding /usr/bin/see that executes cygstart? This won't fix the _ps and _pdf cases. I still think that fixing texdoc itself is the right way (as the user's environment sometimes gets truncated), however, you're the maintainer. If you decide to set them in /etc/profile.d/tetex.sh, please also set TEXDOCVIEW_ps and TEXDOCVIEW_pdf to the same value. BTW, I just downloaded the 2.0.2 sources from , and it has no mention of either "see" or "x-terminal-emulator"... There's no Cygwin-specific README in the tetex package, so I don't know if the above is the canonical package page. Am I missing something? Igor P.S. the current texdoc is also very space-in-filename-unfriendly, but AFAIU, the files it accesses should be in the standard package locations, so this isn't as much of a problem. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/