> This line from the function description:
>
> /* extension to ".sdf" takes place when appropriate. A space-separated */
> /* list of wild-card file specifications may also be supplied. */
>
> in rec1_find_file.c indicates that we aren't even allowed to assume that
> the space is part of the filename.
And of course you could have spaces in a command substitution string
e.g. "` ls *fred* `"
The same applies to one_find_file. I've backed out of the changes I made
there too, and instead modified the next level up (in ndg and ctg).
> The earlier bit in the description about expansion of environment
> variables also indicates that simply using readdir/fnmatch to replace the
> functionality is a non-starter.
Yup.
> It seems that the easiest approach is to switch CUPID to using ndgAssoc so
> that I can at least have a space in the directory name....
Yeah - I didn't expect it to require this much thought when I started!
David
|