Mail Archives: opendos/1997/05/08/08:55:48
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 -