🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Terence P. Ma Tue, 28 Jan 1992 18:11
Ensuring valid filenames
#1121
Author: Terence P. Ma
Date: Tue, 28 Jan 1992 18:11
34 lines
1702 bytes
System: Sun SS1+, SunOS 4.1.1B (no patches), Cnews (patched to
20-Dec-91), rn (v 4.4), trn (2.2).

Problem:

I use trn as my reader (tested and found it true in rn as well).  I
saved a message to a file by issuing the command:

s ~/filename <CR>
            ^

The space after the filename becomes a part of the name of the file
(and of course, it is cannot be accessed by the basic mv, rm, ed,
vi, etc. commands).  I was finally able to get rid of the file by
using rm -i * and then choosing "y".  I guess (don't know for sure)
that UNIX automatically truncates the trailing space in the
filename, even though it was used as a part of the filename.

My question is:

Is there a way of making sure that trailing spaces (or spaces in
filenames --- I shudder to think what some of my MAC users might do)
are not accepted in the file designation in the "s" command?

I haven't seen anything discussion or information about this, so I
hope it isn't a FAQ.

Thanks!
-- 
Terence P. Ma, Ph.D.			VOICE:	601-984-1654
Department of Anatomy			FAX:	601-984-1655
University of Mississippi Med. Ctr.	EMAIL:	tpm%tpm-sprl@uunet.uu.net
Jackson, MS 39216			
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