Subject: Re: url-viewer bug?

From: Jeff Goswick <[email-masked]>
Date: Wed, 28 Oct 1998 11:48:40 -0700 (MST)

Nope, attempted with just escaping parenthesis (no embedded newline: Pine
rejects the embedded newline in the .pinerc file, as well as in the setup
screen, which seems appropriate to me).  Now getting debug info:

Want_to read: RETURN (13)
resume_busy_alarm
Opening pipe: "/user/goswick/bin/netscape -noraise -remote openURL\( "http:
  //www.newshound.com/NewsHound/FetchStory.html?day=4&hit_id=123634468", ne
  w-window\)â{" (UT)
PID: 8099, COMMAND: /user/goswick/bin/netscape -noraise -remote openURL\( "
  http://www.newshound.com/NewsHound/FetchStory.html?day=4&hit_id=123634468
  ", new-window\)â{
new mail called (0 2 0)
SIGCHLD raised
q_status_message(VIEWER command completed)

(Note: long lines wrapped at column 75, and indented 2 spaces)

Again, extra characters are being added to the command.  These characters
are not necessarily ascii.

Both my original setting, and Brett's suggestion w/o newline work if the URL +
command is short (I don't know how short is short enough).

Work around is to create a wrapper shell:

  #!/bin/csh -f
  # urlview wrapper script
  netscape -noraise -remote "openURL ( $1 , new-window)" &

and use pine configuration:

  url-viewers: /user/goswick/bin/urlview

Regards,
Jeff

On Tue, 27 Oct 1998, Brett Eldridge wrote:

> On Tue, 27 Oct 1998, Jeff Goswick wrote:
> 
> > url-viewers :
> >  "/user/goswick/bin/netscape -noraise -remote 'openURL ( _URL_ , new-window)'"
> 
> Try this instead:
> 
> "/user/goswick/bin/netscape -noraise -remote openURL\\(_URL_,\\ 
> new-window\\)"
> 
> 
> - brett
> 
>