Anonymous | Login | 2024-04-20 08:14 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 | ||
0000884 | [1003.1(2013)/Issue7+TC1] Shell and Utilities | Editorial | Enhancement Request | 2014-10-16 19:46 | 2019-06-10 08:54 | ||
Reporter | rhansen | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
Name | Richard Hansen | ||||||
Organization | BBN | ||||||
User Reference | |||||||
Section | sh | ||||||
Page Number | 3191-3192 | ||||||
Line Number | 106811-106813 | ||||||
Interp Status | Approved | ||||||
Final Accepted Text | See Note: 0002531. | ||||||
Summary | 0000884: require sh to set IFS to <space><tab><newline> on startup | ||||||
Description |
Scripts almost never explicitly set IFS, so permitting the shell to inherit IFS from the environment is a recipe for hard-to-diagnose bugs (including possible security vulnerabilities). While I have not done a thorough investigation, all of the implementations I've looked at already set IFS to <space><tab><newline> on startup. |
||||||
Desired Action |
On page 2325 lines 73796-73798, change:Implementations may ignore the value of IFS in the environment, or the absence of IFS from the environment, at the time the shell is invoked, in which case the shell shall set IFS to <space><tab><newline> when it is invoked. to: The shell shall set IFS to <space><tab><newline> when it is invoked. On pages 3191-3192, remove lines 106806-106813 (IFS in sh's Environment Variables section). On page 3203 lines 107331-107334 (sh Rationale), change: The KornShell ignores the contents of IFS upon entry to the script. A conforming application cannot rely on importing IFS. One justification for this, beyond security considerations, is to assist possible future shell compilers. to: One justification for ignoring the contents of IFS upon entry to the script, beyond security considerations, is to assist possible future shell compilers. |
||||||
Tags | tc2-2008 | ||||||
Attached Files | |||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2014-10-16 19:46 | rhansen | New Issue | |
2014-10-16 19:46 | rhansen | Name | => Richard Hansen |
2014-10-16 19:46 | rhansen | Organization | => BBN |
2014-10-16 19:46 | rhansen | Section | => sh |
2014-10-16 19:46 | rhansen | Page Number | => 3191-3192 |
2014-10-16 19:46 | rhansen | Line Number | => 106811-106813 |
2014-10-16 19:46 | rhansen | Interp Status | => --- |
2014-10-30 15:07 | shware_systems | Note Added: 0002429 | |
2015-01-29 17:49 | Don Cragun | Interp Status | --- => Pending |
2015-01-29 17:49 | Don Cragun | Note Added: 0002531 | |
2015-01-29 17:49 | Don Cragun | Status | New => Interpretation Required |
2015-01-29 17:49 | Don Cragun | Resolution | Open => Accepted |
2015-01-29 17:50 | Don Cragun | Note Edited: 0002531 | |
2015-01-29 17:51 | Don Cragun | Final Accepted Text | => See Note: 0002531. |
2015-01-29 17:51 | Don Cragun | Tag Attached: tc2-2008 | |
2015-02-20 12:13 | ajosey | Interp Status | Pending => Proposed |
2015-02-20 12:13 | ajosey | Note Added: 0002554 | |
2015-03-23 12:09 | ajosey | Interp Status | Proposed => Approved |
2015-03-23 12:09 | ajosey | Note Added: 0002599 | |
2015-05-27 21:26 | mirabilos | Note Added: 0002678 | |
2015-05-27 21:48 | rhansen | Note Added: 0002679 | |
2015-05-27 21:50 | rhansen | Note Edited: 0002679 | |
2015-05-27 21:50 | rhansen | Note Edited: 0002679 | |
2015-05-27 21:50 | rhansen | Note Edited: 0002679 | |
2015-05-27 21:51 | rhansen | Note Edited: 0002679 | |
2015-05-27 21:52 | rhansen | Note Edited: 0002679 | |
2015-05-27 21:57 | rhansen | Note Added: 0002681 | |
2015-05-27 22:15 | mirabilos | Note Added: 0002682 | |
2015-05-30 21:01 | mirabilos | Note Added: 0002688 | |
2015-06-02 15:13 | shware_systems | Note Added: 0002691 | |
2019-06-10 08:54 | agadmin | Status | Interpretation Required => Closed |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |