On Fri, 19 Mar 2010, Tim Jenness wrote:
> I started doing that except there is a problem. If the glob does not
> match anything then WORDEXP returns the string with the wildcard still
> in place. So if I ask to expand '*.foo' and there are no .foo files I
> get back an expanded string of '*.foo'. There is no equivalent of
> ONE__NOFILES status. I'm not sure whether this matters because other
> things downstream will complain when you attempt to open the file but in
> current behaviour you would return no files rather than a file with a
> '*' in it. I'm not going to push my changes to CTG and GRP for the
> moment.
>
Maybe I need a ONE_WORDEXP that calls PSX_WORDEXP and checks the first
result to see if it included '[*?]' when the original did as well.
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|