On Sun, Jul 13, 2003 at 04:47:39PM +0100, David selby wrote:Your dead right ! I stripped off my substitution stuff, quoted "$_scantox" & it worked perfect. I was trying to get the escape backslashes just right, didn't realise bash was smart enough to sort it out for me.
Hello again, more thorny bash escaped space problems ... in $_tox is a file called "this is a test" .... Below is the portion of code that is causing problems ....
for _scantox in $_tox/* ; do
_scantox=${_scantox// /\\ }
Perhaps that should be:
_scantox="${_scantox// /\\ }"
?
(And, actually, I don't get why you're doing all this grotty substitution stuff anyway. Just write $_scantox as "$_scantox" *every time you use it*. bash handles spaces just fine as long as you quote everything.)
Would I be flamed if I said I'm starting to like bash ? Dave
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

