cc: [email protected]
Subject: Re: [ast-developers] Why does 'typeset -M blabla0 x' abort the shell  
instead returning just with non-zero exit code?
--------

> Why does 'typeset -M blabla0 x' abort the shell instead returning just
> with non-zero exit code?
> 
> I tried this and ksh93 (20121012) aborted the shell immediately:
> ~/bin/ksh -c 'typeset -M blabla0 x ; print $?'
> /home/ced/bin/ksh: typeset: blabla0: unknown mapping name
> 
> Ced
> -- 
> Cedric Blancher <[email protected]>
> Institute Pasteur
> 

typeset is a special builtin and has the properies listed in the
standard for special builtins.  One property is that errors
cause a script to terminate.

If you use
        command typeset ...
then typeset will behave like a regular builtin and not abort
the script.

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

Reply via email to