why linux is not "space" friendly ???

I’ve been using Linux (Now Open SuSE 11) since 2004.
what have been annoying me all this time is why linux is not “space” friendly ?

What i mean “not space friendly” is like this.
For example. When i create an offline repository (in open suse), i always get errors if i use space as part of folder name where i stored rpm packages.

In opensuse 10.3 (maybe 11 also). If i run SuSEconfig in terminal, i allways get warning message “The generated cache is invalid” if i stored new icons theme that contains space as its foldername (for example: /usr/share/icons/my new icons).

On 2008-08-02, wicaksono <wicaksono@no-mx.forums.opensuse.org> wrote:

> I’ve been using Linux (Now Open SuSE 11) since 2004.
> what have been annoying me all this time is why linux is not “space”
> friendly ?
>
> What i mean “not space friendly” is like this.
> For example. When i create an offline repository (in open suse), i
> always get errors if i use space as part of folder name where i stored
> rpm packages.
>
> In opensuse 10.3 (maybe 11 also). If i run SuSEconfig in terminal, i
> allways get warning message “The generated cache is invalid” if i
> stored new icons theme that contains space as its foldername (for
> example: /usr/share/icons/my new icons).

If you want to use spaces, you should write “/usr/share/icons/my new icons”.
That is not specific to Linux, Windows has the same problem.

Better to use /usr/share/icons/my_new_icons, that is what they invented ‘_’
for.

Of course, you could also use /usr/share/icons/my\ new\ icons, but that is
too ugly for words… :slight_smile:


The sand remembers once there was beach and sunshine
but chip is warm too
– haiku from Effector Online, Volume 1, Number 6

> “/usr/share/icons/my new icons”
> /usr/share/icons/my_new_icons
> /usr/share/icons/my\ new\ icons

OR you could use these or LOTS of others
/usr/share/icons/my.New.icons
/usr/share/icons/my-new-icons
/usr/share/icons/myNewIcons

or you could make it REAL ugly
/usr/share/icons/my21%new21%_icons


DenverD (Linux Counter 282315)
A Texan in Denmark

All kidding aside, the real reason is that Linux uses the “space” to separate file names and commands in the command line. The system has no way of knowing the word “new” should be part of “my” and “icons” as opposed to three separate files (or commands) unless you tell it: by putting the three words in “quotes”.

If you run the command – rm my new icons – it will (at least attempt) to remove three files; – rm “my new icons” – will remove (or try to remove) just one.

Your command which included – /usr/share/icons/my new icons – was interpreted as an attempt to do something with – /usr/share/icons/my – and then the same thing with – new – and then – icons – none of which existed.

So the work-around is quotes to group the words, or not having spaces in the first place. This also suggests some care in creating file names – some special characters do special things.