cc: [email protected]
Subject: Re: Re: [ast-users] [ksh93] How to understand `[ -n hello world ]'?
--------

> One of the problems with shell programming is that it leans heavily
> on the user to *know* which features are portable/standard in the
> shell of their choice.
> 
> It would be nice to have some way of setting an option in the shell for 
> testing *strict* conformance to posix.  (like set -o strict).
> 
> bash already has 'set -o posix', but I think this allows certain 
> features to slip through.
> 
> Henk
> 

It isn't clear which should be checked.  Is this static or runtime?
What about external commands?  For exampe [ and test are utilities
that are not required to be built-ins.  If runtime, what if the problem
is caused by eval of data read by the shell? 

Also, what about scripts that use commands like source or declare  that are not
part of the standard?  Is this an error, or is there an external instances of
these so that the script is valid as far as posix is concerned.


David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to