Article View: news.software.readers
Article #1121Ensuring valid filenames
From: Terence P. Ma
Date: Tue, 28 Jan 1992 18:11
Date: Tue, 28 Jan 1992 18:11
34 lines
1702 bytes
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
Technical Details
Message-ID:
<1992Jan28.181134.2838@tpm-sprl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!tpm-sprl!tpmShow Full Headers
Complete Article Headers
Message-ID: <1992Jan28.181134.2838@tpm-sprl> Subject: Ensuring valid filenames Date: Tue, 28 Jan 1992 18:11:34 GMT From: tpm%tpm-sprl@uunet.UU.NET (Terence P. Ma) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!tpm-sprl!tpm Newsgroups: news.software.readers Organization: Dept. of Anatomy, Univ. Mississippi Medical Center