Re: 1.5.18: Problem launching URLs from Pine

2005-08-31 Thread Eric Blake
> Out of interest, is it correct behaviour for Bash to > return a value for > SHELL even though it hasn't been explicitly set? See `man bash', under Shell Variables. Bash documents that if SHELL is not set in the environment, then bash populates it as an unexported variable with the full pathnam

Re: 1.5.18: Problem launching URLs from Pine

2005-08-31 Thread Igor Pechtchanski
On Wed, 31 Aug 2005, Antony Baxter wrote: > Igor, > > > 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, pin

Re: 1.5.18: Problem launching URLs from Pine

2005-08-31 Thread Antony Baxter
Igor, > 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

Re: 1.5.18: Problem launching URLs from Pine

2005-08-31 Thread Igor Pechtchanski
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 /b

Re: 1.5.18: Problem launching URLs from Pine

2005-08-31 Thread Antony Baxter
> 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 l

Re: 1.5.18: Problem launching URLs from Pine

2005-08-31 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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

Re: 1.5.18: Problem launching URLs from Pine

2005-08-31 Thread Antony Baxter
Brian Dessent wrote: > Antony Baxter wrote: > > >> anything to work. At the moment I've set >> >> url-viewers = /home/ant/bin/viewUrl >> >> in my .pinerc where viewUrl is a 1-line script as >> follows: >> >> echo $1 >> /tmp/viewUrl.log >> >> When run from the command line this (obviously)

Re: 1.5.18: Problem launching URLs from Pine

2005-08-30 Thread Brian Dessent
Antony Baxter wrote: > anything to work. At the moment I've set > >url-viewers = /home/ant/bin/viewUrl > > in my .pinerc where viewUrl is a 1-line script as > follows: > >echo $1 >> /tmp/viewUrl.log > > When run from the command line this (obviously) works > fine. However, If it's a s

1.5.18: Problem launching URLs from Pine

2005-08-30 Thread Antony Baxter
Hello, I've come across a problem with Pine under Cygwin. I've tried this with the stock Cygwin version of Pine (latest available from Setup: 4.58-1), and have also compiled up the latest version (4.63) and had the same result. I've also tried version 4.60 on Solaris and could not reproduce t