On May 22, 8:23am, Neil Harvey wrote:
> Subject: Re: Command File Programs & the Shell
>
> I echo the actual command into a temp file, and then invoke the shell with
the temp file redirected as input.
>
> So from the good old CI prompt
>
> echo ls A* > shlltemp
> echo exit >> shlltemp
> sh.hpbin.sys < shlltemp
>
> I find that if I try the following
>
> run sh.hpbin.sys;info="-c ls A*"
>
> Then it is a) slow, and b) the ls command doesnt seem to get the A* argument.
Re. b):
The CI doesn't do wildcard expansion like the shell (meaning that it does not
automatically expand wildcarded names to all matching filenames before invoking
the appropriate command executor code), and it also doesn't
recognize '*' as a wildcard filename character. Your example above using
i/o redirection to the file "shlltemp" looks like it has a better chance of
working correctly (as long as you use :xeq in front of sh.hpbin.sys).
Jeff Vance, CSY
--