View Single Post
Old 11-18-2011, 02:15 PM   #1
nimblebooks
Enthusiast
nimblebooks began at the beginning.
 
Posts: 28
Karma: 10
Join Date: May 2010
Device: Kindle
escaping spaces in command line --title

Hi,

I am having some trouble escaping the spaces in command line title when using a bash variable.

where I have

ebook-convert ... foo.epub ... --title$seed
or ebook-convert ...--title'$seed'
or ebook-convert ...--title"$seed"

where $seed="Adam Hall"

I am getting, respectively, title as

Adam
'Adam
"Adam

in other words, it is dropping off everything after the space. What am I doing wrong?
nimblebooks is offline   Reply With Quote