View Issue Details

IDProjectCategoryView StatusLast Update
00017321003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2024-06-11 09:07
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted As Marked 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectioncp, mv
Page Number2609, 3020
Line Number84793, 100451
Interp StatusApproved
Final Accepted TextSee 0001732:0006410.
Summary0001732: cp and mv EXIT STATUS does not account for -i
DescriptionThe description of cp exit status 0 is:
All input files were copied successfully.
and for mv it is:
All input files were moved successfully.
These do not take into account a "no" answer to a prompt when -i is used.

Compare with rm:
Each directory entry was successfully removed, unless its removal was canceled by a non-affirmative response to a prompt for confirmation.

Desired ActionOn page 2609 line 84793 section cp, change:
All input files were copied successfully.
to:
Each file was successfully copied, unless copying it was canceled by a non-affirmative response to a prompt for confirmation.

On page 3020 line 100451 section mv, change:
All input files were moved successfully.
to:
Each file was successfully moved, unless moving it was canceled by a non-affirmative response to a prompt for confirmation.

Tagsapplied_after_i8d3, tc3-2008

Activities

Don Cragun

2023-07-31 15:26

manager   bugnote:0006410

Interpretation response
------------------------
The standard is unclear on this issue, and no conformance distinction can be made between alternative implementations based on this. This is being referred to the sponsor.

Rationale:
-------------
The cp and mv utility's EXIT STATUS sections did not properly account for the interaction with the -i option.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------

On page 2609 line 84793 section cp, change:
All input files were copied successfully.
to:
All requested files (excluding files where a non-affirmative response was given to a request for confirmation) were successfully copied.



On page 3020 line 100451 section mv, change:
All input files were moved successfully.
to:
All requested files (excluding files where a non-affirmative response was given to a request for confirmation) were successfully moved.



On page 3200, line 107342-107343 section rm, change:
Each directory entry was successfully removed, unless its removal was canceled by a non-affirmative response to a prompt for confirmation.
to:
All requested directory entries (excluding directory entries where a non-affirmative response was given to a request for confirmation) were successfully deleted.

agadmin

2023-07-31 16:32

administrator   bugnote:0006413

Interpretation proposed: 31 July 2023

agadmin

2023-09-04 08:20

administrator   bugnote:0006454

Interpretation approved: 4th September 2023

Issue History

Date Modified Username Field Change
2023-05-23 13:50 geoffclare New Issue
2023-05-23 13:50 geoffclare Name => Geoff Clare
2023-05-23 13:50 geoffclare Organization => The Open Group
2023-05-23 13:50 geoffclare Section => cp, mv
2023-05-23 13:50 geoffclare Page Number => 2609, 3020
2023-05-23 13:50 geoffclare Line Number => 84793, 100451
2023-05-23 13:50 geoffclare Interp Status => ---
2023-07-31 15:26 Don Cragun Note Added: 0006410
2023-07-31 15:27 Don Cragun Final Accepted Text => See 0001732:0006410.
2023-07-31 15:27 Don Cragun Status New => Interpretation Required
2023-07-31 15:27 Don Cragun Resolution Open => Accepted As Marked
2023-07-31 15:27 Don Cragun Tag Attached: tc3-2008
2023-07-31 16:32 agadmin Interp Status --- => Proposed
2023-07-31 16:32 agadmin Note Added: 0006413
2023-09-04 08:20 agadmin Interp Status Proposed => Approved
2023-09-04 08:20 agadmin Note Added: 0006454
2023-09-05 11:00 geoffclare Status Interpretation Required => Applied
2023-09-05 11:00 geoffclare Tag Attached: applied_after_i8d3
2024-06-11 09:07 agadmin Status Applied => Closed