🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #957

Re: messing up names for saves

#957
From: Kim F. Storm
Date: Sat, 29 Sep 1990 02:19
41 lines
2324 bytes
lyndon@cs.athabascau.ca (Lyndon Nerenberg) writes:

>The default scheme for naming save files is flawed. Given a group
>name such as rec.ham-radio.packet, the default folder created is
>+/rec/ham-radio/packet. Once it has been created (by a save, or
>by killing in rec.ham-radio.packet), any attempt to save to the
>default folder from rec.ham-radio will fail, since nn attempts to
>create +/rec/ham-radio as a file, but this already exists as a
>directory.

And doing it in the opposite order will fail as well...

I have been aware of this problem for a long time, but I haven't
got around to doing something radical about it.  The $F macro was 
a simple hack to do for the SysV world what $G does for the BSD
world - but with the oversight you have noticed.

>Is there a simple way around this that I'm missing? I cannot find
>anything in the doc describing a situation like this.

The easiest solution is probably to redefine the default save file
from the standard +$F to something which always gives a file name,
e.g.

	set default-save-file +$F/Default
or maybe
	set default-save-file +$F/$L

>I would suggest that the filename part of the default folder
>be capatilized to prevent this namespace collision.

Sounds like a good idea, but it would cause some problems for the
current users who have a lot of folders with the lower case name.
(nn could of course rename these files on the fly, but it is
a bit tricky...)  And what if $F is used in combinations like those
given above - then it would probably be wrong to capitalize anything.
I think it is too complicated given the simple solution!

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Technical Details
Message-ID: <687@texas.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm
References: <278@aupair.cs.athabascau.ca>

Show Full Headers
Complete Article Headers
Message-ID: <687@texas.dk>
Subject: Re: messing up names for saves
Date: Sat, 29 Sep 1990 02:19:29 +0000
From: storm@texas.dk (Kim F. Storm)
References: <278@aupair.cs.athabascau.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm
Newsgroups: news.software.nn
Organization: Texas Instruments, Denmark
Lines: 41
Posted: Sat Sep 29 03:19:29 1990