Anonymous | Login | 2023-12-05 06:33 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001384 | [1003.1(2016/18)/Issue7+TC2] Shell and Utilities | Objection | Omission | 2020-07-29 09:02 | 2021-01-29 11:27 | ||
Reporter | geoffclare | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted As Marked | ||||
Status | Applied | ||||||
Name | Geoff Clare | ||||||
Organization | The Open Group | ||||||
User Reference | |||||||
Section | 2.12 Shell Execution Environment | ||||||
Page Number | 2382 | ||||||
Line Number | 76195-76202 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | Note: 0005198 | ||||||
Summary | 0001384: Subshell of an interactive shell is effectively non-interactive | ||||||
Description |
The standard is missing a statement to the effect that a subshell of an interactive shell behaves as a non-interactive shell (despite the fact that $- and "set +o" indicate it is interactive). For example, in all shells I tried, the subshell in the following is terminated by SIGTERM. (Some wrote "Terminated" between the two lines, others didn't, but the $? value in all of them indicated termination with SIGTERM and none of them wrote "foo".) $ (pid=$(sh -c 'echo $PPID'); kill -s TERM "$pid"; echo foo) $ echo $?If the subshell was behaving as per the standard's requirements for an interactive shell, the SIGTERM would be ignored, the echo would be executed, and $? would be 0. The current statement about traps in 2.12 is also out of date with respect to the description of the trap utility. |
||||||
Desired Action |
On page 2382 line 76195 section 2.12 Shell Execution Environment, after applying bug 1247 change: A subshell environment shall be created as a duplicate of the shell environment, except that traps that are not being ignored shall be set to the default action.to: A subshell environment shall be created as a duplicate of the shell environment, except that: |
||||||
Tags | tc3-2008 | ||||||
Attached Files | |||||||
|
![]() |
||||||
|
![]() |
|
(0005198) rhansen (manager) 2021-01-11 16:45 edited on: 2021-01-14 16:30 |
On page 2382 line 76195 section 2.12 Shell Execution Environment, after applying bug 1247 change: A subshell environment shall be created as a duplicate of the shell environment, except that traps that are not being ignored shall be set to the default action.to: A subshell environment shall be created as a duplicate of the shell environment, except that: On page 2411 line 77159 (XCU 2.14 set -n) change: An interactive shell may ignore this option.to: Interactive shells and subshells of interactive shells, recursively, may ignore this option. |
(0005200) rhansen (manager) 2021-01-14 16:31 edited on: 2021-01-14 16:37 |
Note: 0005198 was edited to change "and the output of <tt>set -o</tt> and <tt>set +o</tt> shall" to "may" in response to a comment on the mailing list: https://www.mail-archive.com/austin-group-l@opengroup.org/msg07384.html [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2020-07-29 09:02 | geoffclare | New Issue | |
2020-07-29 09:02 | geoffclare | Name | => Geoff Clare |
2020-07-29 09:02 | geoffclare | Organization | => The Open Group |
2020-07-29 09:02 | geoffclare | Section | => 2.12 Shell Execution Environment |
2020-07-29 09:02 | geoffclare | Page Number | => 2382 |
2020-07-29 09:02 | geoffclare | Line Number | => 76195-76202 |
2020-07-29 09:02 | geoffclare | Interp Status | => --- |
2020-11-02 13:26 | dennisw | Issue Monitored: dennisw | |
2020-12-01 16:28 | geoffclare | Relationship added | related to 0001427 |
2021-01-11 16:45 | rhansen | Note Added: 0005198 | |
2021-01-11 16:47 | rhansen | Final Accepted Text | => Note: 0005198 |
2021-01-11 16:47 | rhansen | Status | New => Resolved |
2021-01-11 16:47 | rhansen | Resolution | Open => Accepted As Marked |
2021-01-11 16:47 | rhansen | Tag Attached: tc3-2008 | |
2021-01-14 16:30 | rhansen | Note Edited: 0005198 | |
2021-01-14 16:31 | rhansen | Note Added: 0005200 | |
2021-01-14 16:33 | rhansen | Note Edited: 0005200 | |
2021-01-14 16:33 | rhansen | Note Edited: 0005200 | |
2021-01-14 16:33 | rhansen | Note Edited: 0005200 | |
2021-01-14 16:37 | rhansen | Note Edited: 0005200 | |
2021-01-29 11:27 | geoffclare | Status | Resolved => Applied |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |