delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/31/04:03:00

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
Message-ID: <20050831080245.64033.qmail@web86910.mail.ukl.yahoo.com>
Date: Wed, 31 Aug 2005 09:02:45 +0100 (BST)
From: Antony Baxter <antony_baxter AT yahoo DOT co DOT uk>
Subject: Re: 1.5.18: Problem launching URLs from Pine
To: cygwin AT cygwin DOT com
MIME-Version: 1.0


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)
works
>> fine. However,

Hi there,

> If it's a script file it probably needs a shebag as
the first line
> (#!/bin/sh).  Also, make sure it has execute
permissions (chmod 755).
 >
> It depends on how pine tries to execute it though. 
If it uses system()
> then the shebang is not necessary, otherwise it
probably is.

Spent some time on this last night and have now got to
the bottom of it. 
It seems that, in Bash, if I don't explicitly set my
SHELL environment 
variable,

% 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.

Hope someone else finds this useful!

Ant.



		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019