Hi Norman,
On Tue, 7 Mar 2006, Norman Gray wrote:
> David,
>
> On 2006 Mar 7 , at 10.03, David Berry wrote:
>
> > IFS is not available in tcsh/csh is it?
>
> Probably not, but does that matter? You would be picking the shell
> to fork, surely.
HDS allows the user to choose (t)csh or sh, via environment variable
HDS_SHELL, so I need to have some way of ignoring spaces in both shells.
> Anyway, it does seem a bit odd that the only way of doing this seems
> to be to fork out to a shell. It would surely be possible, and
> surely more robust, to code this internal to the library.
The idea is that HDS interprets the supplied string in exactly the
same way that the (user-specified) shell would have done, even to the
extent of having command substition, history substitution, regex
patterns, etc, etc. Is there some way of doing this reliably which does
not involve using the shell itself to do the interpretation?
David
|