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: Wed, 31 Aug 2005 09:59:57 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Eric Blake cc: Antony Baxter , cygwin AT cygwin DOT com Subject: Re: 1.5.18: Problem launching URLs from Pine In-Reply-To: <43159D32.1060200@byu.net> Message-ID: References: <20050831080245 DOT 64033 DOT qmail AT web86910 DOT mail DOT ukl DOT yahoo DOT com> <43159D32 DOT 1060200 AT byu DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 31 Aug 2005, Eric Blake wrote: > According to Antony Baxter on 8/31/2005 2:02 AM: > > % echo $SHELL > > > > returns /bin/bash, but stdlib's getenv("SHELL") > > returns null. Pine uses > > getenv("SHELL") to figure out how to execute external > > apps. > > > > Explicitly setting SHELL to /bin/bash allows Pine to > > work. > > Sounds like a bug should be reported upstream to Pine to use /bin/sh > when SHELL is undefined! I haven't had a chance to debug this properly, but from the first glance at the code, it's actually weirder than that. The "U" in the debug output means that pine tries to use the user's preferred shell. If SHELL is undefined, pine tries to use /bin/csh (yes, "csh" -- don't ask me why). In system mode, it uses /bin/sh, like all normal apps. Anthony, do you have the tcsh package installed? If not, that may be your problem. Just for kicks, if you don't have a /bin/csh, try "ln /bin/sh /bin/csh" (yes, I know it won't work with csh syntax), and see if that makes pine work for you. Another thing to try is to export SHELL from bash. Just say "export SHELL" with the current value (i.e., /bin/bash). As for fixing this, there are two options -- one is to send a patch upstream (who uses /bin/csh nowadays anyway?), and another is to make "pine" depend on "tcsh". Igor -- 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! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/