View Single Post
Old 12-01-2009, 01:53 PM   #43
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,160
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DaleDe View Post
Bash man page says the following:

A simple command is a sequence of optional variable assignments followed by blank-separated words and redirections, and terminated by a control operator. The first word specifies the command to be executed, and is passed as argument zero. The remaining words are passed as arguments to the invoked command.

With the following definitions:

blank A space or tab.
word A sequence of characters considered as a single unit by the
shell. Also known as a token.
metacharacter
A character that, when unquoted, separates words. One of the
following: | & ; ( ) < > space tab

Thus a space is a metacharacter with special powers and not just a standard character. It requires special handling.

Dale
not to nit, to much
Nowhere does that say that file names can not have spaces.
What it says is : If a filename with spaces is used as a shell command or argument, the special treatment is required.

This is hardly different from windows: "C:\Program Files\Calibre2\calibre" must receive special treatment (inside quotes) when used in a Batch file or as an argument.
theducks is offline   Reply With Quote