View Issue Details

IDProjectCategoryView StatusLast Update
00002141003.1(2008)/Issue 7Shell and Utilitiespublic2013-04-16 13:06
ReporterKonrad_Schwarz Assigned Toajosey  
PrioritynormalSeverityEditorialTypeClarification Requested
Status ClosedResolutionAccepted As Marked 
NameKonrad Schwarz
OrganizationSiemens AG
User Referencedot-return
Sectionhttp://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#dot
Page Number2341
Line Number74026-74031
Interp Status---
Final Accepted Text0000214:0000380
Summary0000214: "dot" should mention the effect of `return'
DescriptionThe description of "dot" never mentions `return'.
Desired ActionAdd a new paragraph at the end of DESCRIPTION:

The `return' utility shall cause the shell to stop executing the dot script.

Or mention `return' explicitly in the SEE ALSO list, despite it being subsumed by the `Special Built-In Utilities' already mentioned there.
Tagstc1-2008

Activities

Don Cragun

2010-01-15 19:53

manager   bugnote:0000374

I don't understand why anything needs to be said about the return special built-in utility in the description of the dot special built-in utility. The EXIT STATUS section of the dot utility description already says that the exit status will be the exit status of the last command exeuted in file. And, the description of the return special built-in utility says that it will cause the shell to stop executing the current function or dot script.

Konrad_Schwarz

2010-01-18 08:01

reporter   bugnote:0000376

This change would be purely for the reader's convenience.

I agree that the current version of the standard is complete. Is "Editorial"/"Clarification Requested" not the right classification for such a change request?

nick

2010-01-21 16:47

manager   bugnote:0000379

In austin-group-l:archive/latest/13351 Konrad Schwarz says:

In POSIX, "return" is defined solely for dot scripts and shell functions.
Given its limited scope, I think there is a certain justification for
referring to it from those two scopes.

And indeed, 2.8.5, "Function Definition Command", does mention the special effect
of return: "If the special built-in _return_ is executed in the
_compound-command_, the function completes [...]."

I also just noticed that the "return" NAME section currently reads
"return from a function". This could be extended, e.g., to
"return from a function or script".

msbrown

2010-01-21 17:10

manager   bugnote:0000380

Last edited: 2010-01-21 17:12

Page 2342 line 74074 add

(add a cross reference to return special built-in utility to the See Also list)

Page 2356 line 74480 add to the See Also list references to:
Section 2.9.5 Function Definition Command
dot special built-in

Page 2324 line 73400 after the word return add:
(a cross-reference to the return special built in utility)

p 2355 l74432 add to the end of the line:
"or dot script"

Issue History

Date Modified Username Field Change
2010-01-15 14:03 Konrad_Schwarz New Issue
2010-01-15 14:03 Konrad_Schwarz Status New => Under Review
2010-01-15 14:03 Konrad_Schwarz Assigned To => ajosey
2010-01-15 14:03 Konrad_Schwarz Name => Konrad Schwarz
2010-01-15 14:03 Konrad_Schwarz Organization => Siemens AG
2010-01-15 14:03 Konrad_Schwarz User Reference => dot-return
2010-01-15 14:03 Konrad_Schwarz Section => http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#dot
2010-01-15 14:03 Konrad_Schwarz Page Number => 0
2010-01-15 14:03 Konrad_Schwarz Line Number => 0
2010-01-15 19:53 Don Cragun Page Number 0 => 2341
2010-01-15 19:53 Don Cragun Line Number 0 => 74026-74031
2010-01-15 19:53 Don Cragun Interp Status => ---
2010-01-15 19:53 Don Cragun Note Added: 0000374
2010-01-18 08:01 Konrad_Schwarz Note Added: 0000376
2010-01-21 16:47 nick Note Added: 0000379
2010-01-21 17:10 msbrown Note Added: 0000380
2010-01-21 17:10 msbrown Status Under Review => Resolved
2010-01-21 17:10 msbrown Resolution Open => Accepted As Marked
2010-01-21 17:11 msbrown Final Accepted Text => 0000214:0000380
2010-01-21 17:12 msbrown Note Edited: 0000380
2010-08-27 12:53 ajosey Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Resolved => Closed