🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #161325

Re: slrn - replacing ampersand on XP

#161325
From: Marcus Houlden
Date: Mon, 24 Jan 2005 17:32
28 lines
2349 bytes
On Mon, 24 Jan 2005 02:57:47 -0000, W. Citoan <wcitoan@NOSPAM-yahoo.com>
wrote the following to news.software.readers:

> Marcus Houlden wrote:
>>  Bit of a fiddly one. I'm using slrn 0.9.7.0 on WinXP. If I press "U" in
>>  article mode to load a URL from the command line all works well provided the
>>  URL contains no ampersand characters (&). However, if a URL *does* contain
>>  ampersands, it doesn't work. The command interpreter on XP (CMD.EXE) treats
>>  ampersands as command separators and I have to escape them with ^ to tell it
>>  otherwise. The lines I have covering URLs in my slrn.rc are as follows:
>>  
>>  set non_Xbrowser "start %s"
>>  set Xbrowser "start %s"
>>  
>>  While I can enter the ^s manually, it can be easy to miss one & if it's a
>>  long URL. I'm guessing what I need is an S-Lang macro to replace all the &
>>  characters with ^& ones but my S-Lang isn't up to much.
> 
> set non_Xbrowser "start \"title\" \"%s\""

That's certainly a lot easier than the way I had in mind. Thanks for that. I
found I needed to have \"title"\ otherwise XP just loads up a command prompt
with the URL as the window title.

mh.
-- 
Reply-to address *is* valid.
"From" address is a blackhole.
Technical Details
Message-ID: <slrncvac8m.23k.spam@neutron.nukesoft.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrncv8g3n.1k0.spam@neutron.nukesoft.co.uk> <slrncv8p11.so.wcitoan@wcitoan-via.supernews.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrncvac8m.23k.spam@neutron.nukesoft.co.uk>
Subject: Re: slrn - replacing ampersand on XP
Date: Mon, 24 Jan 2005 17:32:39 +0000
From: Marcus Houlden <spam@nukesoft.co.uk>
References: <slrncv8g3n.1k0.spam@neutron.nukesoft.co.uk> <slrncv8p11.so.wcitoan@wcitoan-via.supernews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: NukeSoft
Lines: 28
Reply-To: mh-spam@nukesoft.co.uk
X-Trace: individual.net 0ka/t95vBRHlCHFtMqlD/An8Pu9Jg4G+fmIn6G1CSnP34ULsVL
X-ICQ-UIN: 29654055
X-Website: http://www.nukesoft.co.uk/personal/
X-PGP: Keys available from http://www.nukesoft.co.uk/personal/contact.htm
User-Agent: slrn/0.9.7.4 (Win32)