Roger.Evans@itri.brighton.ac.uk wrote:
> The actual test is for a space in the filename and an empty directory part which
> is why it didn't work for me - I was using a full pathname. I wonder why Rob did
> it like that?
#_IF DEF WIN32
;;; filenames can include spaces, so treat vedargument as a single
;;; file (and not as a workbuff -- see Is_file_name in "vdfiles.p")
if strmember(`\s`, vedargument)
and sys_fname_path(vedargument) = nullstring
then
'.\\' dir_>< vedargument -> vedargument;
endif;
It looks to me as if '.\' gets tacked on the front if there is a space
in the name and no directory part, and vedargument gets passed through
untouched otherwise. The lines you quoted from ref vedprocs suggest
that a space *anywhere* in the pathname - directory part or file part -
will do you in, so I don't see how tacking the '.\' on the front will
help. But then I haven't tracked down where the actions described in
ref vedprocs are performed.
Steve
|