Thread View: news.software.nn
2 messages
2 total messages
Started by Lyndon Nerenberg
Tue, 18 Sep 1990 20:09
messing up names for saves
Author: Lyndon Nerenberg
Date: Tue, 18 Sep 1990 20:09
Date: Tue, 18 Sep 1990 20:09
20 lines
1484 bytes
1484 bytes
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.
Is there a simple way around this that I'm missing? I cannot find
anything in the doc describing a situation like this.
I would suggest that the filename part of the default folder
be capatilized to prevent this namespace collision.
--
Lyndon Nerenberg VE6BBM / Computing Services / Athabasca University
{alberta,cbmvax,mips}!atha!lyndon || lyndon@cs.athabascau.ca
The only thing open about OSF is their mouth. --Chuck Musciano
Re: messing up names for saves
Author: Kim F. Storm
Date: Sat, 29 Sep 1990 02:19
Date: Sat, 29 Sep 1990 02:19
41 lines
2324 bytes
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!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads