On 2001.07.18 17:14 Colin McKinnon wrote:
> At 16:09 18/07/01 +0100, Colin McKinnon wrote:
> >I'll go and have a wee play around now.
> 
> Am I doing something stoopid again?:
> 
> [root@lonmay /root]# ls -l *.doc
> -rw-r--r--   1 root     root       123392 Jul 18 17:02 TEST FILE.doc
> [root@lonmay /root]# msword_vd TEST\ FILE.doc
> [root@lonmay /root]# # - that is whats supposed to happen
> [root@lonmay /root]# SAFENAME="TEST\ FILE.doc"
> [root@lonmay /root]# echo $SAFENAME
> TEST\ FILE.doc
> [root@lonmay /root]# msword_vd $SAFENAME
> msword_vd: No such file or directory
> [root@lonmay /root]# msword_vd "$SAFENAME"
> word_vd: No such file or directory

You're overegging the pudding here
 
either
SAFENAME="TEST FILE.doc"
or
SAFENAME=TEST\ FILE.doc
would do


both of these, in ascii, roughly equate to
TEST SPACE FILE
yours equates to
TEST BACKSLASH SPACE FILE

use one methor OR other, not both. :-)

HTH

Lawrence
--------------------------------------------------------------------
http://www.lug.org.uk                   http://www.linuxportal.co.uk
http://www.linuxjob.co.uk               http://www.linuxshop.co.uk
--------------------------------------------------------------------

Reply via email to