delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1997/05/08/08:55:48

Date: Thu, 8 May 1997 09:55:34 -0300 (GMT-0300)
From: Roberto Alsina <ralsina AT ultra7 DOT unl DOT edu DOT ar>
To: yeep <yeep AT xs4all DOT nl>
cc: OpenDOS Mailing List <opendos AT delorie DOT com>
Subject: Re: BIG suggestion for Opendos Features
In-Reply-To: <199705072354.BAA26107@magigimmix.xs4all.nl>
Message-ID: <Pine.LNX.3.91.970508093018.27329A-100000@ultra7.unl.edu.ar>
MIME-Version: 1.0

On Thu, 8 May 1997, yeep wrote:

> > > If you don't want spaces, don't use them.
> > > You can use spaces on EXT2, but I've never seen anybody do it.
> > > Well aside from myself then, but I quit doing it, 'cos it sucked big
> time.
> > 
> > How do you do spaces in filenames in Linux? How does bash reacts to this?
> > And the fileutils (like ls)? Anyway, quoting a filename is losing IMHO,
> so
> > spaces should be out... ;-)
> 
> I use spaces in Win95/NT, but not in Linux.
> If you do however, you must use quotation marks.
> example: "This is a spaced filename".
> Linux shows this as This\is\a\spaced\filename, or something.
> That doesn't make it any clearer, so spaces in filenames on EXT2 is
> useless.

Uh?

$ uname -a
Linux ultra7 2.0.25 #18 Mon Nov 25 13:54:24 GMT-0300 1996 i586
$ touch "This is a spaced filename"
$ ls -l T*

total 1
-rw-r--r--   1 ralsina  users           0 May  8 09:31 This is a spaced filename

$ ls -l "This is a spaced filename" 
(actually I just typed the T and pressed Tab, the shell put the "s and all)

-rw-r--r--   1 ralsina  users           0 May  8 09:31 This is a spaced filename

It looks ok to me. Not a single \ here! :-)

You *can* also do 
$ ls -l This\ is\ a\ spaced\ filename 

-rw-r--r--   1 ralsina  users           0 May  8 09:31 This is a spaced filename

But it's not like it's forcing you :-).

> 
> 	Yeep
> 

Regards

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina AT unl DOT edu DOT ar
 (_Y_.)' ._   ) `._`.  " -.-'   Centro de Telematica
  _..`-'_..-_/ /-'_.'           Universidad Nacional del Litoral
(l)-'' ((i).' ((!.'             Santa Fe - Argentina


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019