cc: [email protected]
Subject: Re: [ast-developers] RFE: Renaming .sh.sig.code to match Opengroup  
<signal.h> spec?
--------


> I've a small RFE for the sake of writing shell signal traps which use
> .sh.sig a bit easier.
> 
> Currently ksh either use custom names ("stopped", "exited", "dumped")
> or numbers in .sh.sig.code. This is frustrating from the viewpoint of
> script programmer who actually have to look into the ksh sources or
> try to trigger the matching event to figure out the string value ksh
> uses for a given si_code.
> 
> Could we just avoid this and just use the uppercase names defined by
> Opengroup in <signal.h>, i.e.
> http://pubs.opengroup.org/onlinepubs/009696699/basedefs/signal.h.html?
> Otherwise ksh93(1) must be updated to list each signal and the names
> or numbers (which aren't portable BTW) used.
> 
> Ced
> -- 
> Cedric Blancher <[email protected]>
> Institute Pasteur
> 

I don't see the point of the prefixes but using uppercase names
as defined in the standard seems reasonable.

We don't require the SIG prefix for signals, so I don't see the
point of the prefixes here either.  This is shell, not C.

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to