Viewing Issue Simple Details
[ Jump to Notes ]
|
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Type |
Date Submitted |
Last Update |
0000706 |
[1003.1(2013)/Issue7+TC1] Shell and Utilities |
Objection |
Enhancement Request |
2013-05-31 20:35 |
2019-06-10 08:55 |
|
Reporter |
jilles |
View Status |
public |
|
Assigned To |
|
Priority |
normal |
Resolution |
Accepted |
|
Status |
Closed |
|
|
|
|
Name |
Jilles Tjoelker |
Organization |
FreeBSD |
User Reference |
|
Section |
XCU 2.12 |
Page Number |
2353 |
Line Number |
74972 |
Interp Status |
Approved |
Final Accepted Text |
See Note: 0001653. |
|
Summary |
0000706: require subshell environment to have its own copy of ulimit |
Description |
Users/scripts may expect that a ulimit command in a subshell environment does not affect any parent shell environment, like a cd or umask command. In fact, this is the case even in ksh93 which explicitly forks when a non-fork subshell environment tries to change ulimit. If the subshell environment is implemented via fork() or if the parent environment cannot execute any more commands, changes to ulimit do not affect the parent either.
Some historical non-compliant implementations execute command substitutions invoking a single built-in utility in the current shell environment. Apart from the fact that this is non-compliant for other reasons, a lone ulimit command with a new value in a command substitution is also unlikely to occur in practice because there is normally no code to run with the new limit and such a command generates no output. |
Desired Action |
Add a new entry to the list "A shell execution environment consists of the following:", under [XSI] shading:
* File size limit as set by ulimit. |
Tags |
tc2-2008 |
|
Attached Files |
|
|