A NOTE has been added to this issue. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1211 
====================================================================== 
Reported By:                kre
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1211
Category:                   Shell and Utilities
Type:                       Clarification Requested
Severity:                   Objection
Priority:                   normal
Status:                     New
Name:                       Robert Elz 
Organization:                
User Reference:              
Section:                    XCU 2.14 -- trap special builtin 
Page Number:                2420 
Line Number:                77514 - 77526 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2018-09-28 02:22 UTC
Last Modified:              2018-09-28 08:44 UTC
====================================================================== 
Summary:                    "trap" (with no args) specification does not match
reality
====================================================================== 

---------------------------------------------------------------------- 
 (0004133) geoffclare (manager) - 2018-09-28 08:44
 http://austingroupbugs.net/view.php?id=1211#c4133 
---------------------------------------------------------------------- 
The reason your test script produces no output is because you haven't set
any traps!

$ ksh -c 'trap foo INT; x=$(trap); echo "$x"'
trap -- foo INT
$ bash -c 'trap foo INT; x=$(trap); echo "$x"'
trap -- 'foo' INT

This issue was investigated in depth in 2009 via
http://austingroupbugs.net/view.php?id=53

Do I have your permission to close this new bug as withdrawn? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2018-09-28 02:22 kre            New Issue                                    
2018-09-28 02:22 kre            Name                      => Robert Elz      
2018-09-28 02:22 kre            Section                   => XCU 2.14 -- trap
special builtin
2018-09-28 02:22 kre            Page Number               => 2420            
2018-09-28 02:22 kre            Line Number               => 77514 - 77526   
2018-09-28 03:20 kre            Tag Attached: tc3-2008                       
2018-09-28 03:20 kre            Tag Attached: issue8                         
2018-09-28 03:20 kre            Tag Detached: tc3-2008                       
2018-09-28 03:21 kre            Tag Detached: issue8                         
2018-09-28 03:23 kre            Note Added: 0004132                          
2018-09-28 08:44 geoffclare     Note Added: 0004133                          
======================================================================


Reply via email to