HP3000-L Archives

May 1996, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Vance <[log in to unmask]>
Reply To:
Jeff Vance <[log in to unmask]>
Date:
Wed, 22 May 1996 11:34:40 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
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
 
--

ATOM RSS1 RSS2