|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0593 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 0593.
Report 0593 Actions
Problem Report Number 0593 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0197 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Commands and Utilities V2 (UNIX 95) Certification Program The Open Brand certification program Test Suite VSC version 4.1.5 Test Identification POSIX.cmd/cp 23 Problem Summary PG4C.00079 This submitter claims the test may fail on implementations that, when using the -i option, prompt for existing directories before copying any files into them. Problem Text
This submitter claims the test may fail on implementations that, when
using the -i option, prompt for existing directories before copying
any files into them.
The command line here is 'cp -i -R directory1 directory2',
and the interactive part is handled by an expect script.
According to the source comments:
# NOTE: The standard is silent on the issue of whether or not the
# directory name will be prompted, and different systems seem to behave
# differently in this regard. The expect script has a loop to deal with
# this fact and the consequent indeterminacy of the order of output to
# expect.
The comment lies: No such loop is present. We prompt with the directory
name and the expect script times out. cp_23_1.exp has:
expect {
"dircp0232.tmp/dircp0231.tmp/tetcp001.inp" { send "n\r" }
"dircp0232.tmp/dircp0231.tmp/tetcp002.inp" { send "y\r" }
}
expect {
"dircp0232.tmp/dircp0231.tmp/tetcp001.inp" { send "n\r" }
"dircp0232.tmp/dircp0231.tmp/tetcp002.inp" { send "y\r" }
}
Whereas it should have:
expect {
"dircp0232.tmp/dircp0231.tmp/tetcp001.inp" { send "n\r" }
"dircp0232.tmp/dircp0231.tmp/tetcp002.inp" { send "y\r" }
"dircp0232.tmp/dircp0231.tmp" { send "y\r" }
}
expect {
"dircp0232.tmp/dircp0231.tmp/tetcp001.inp" { send "n\r" }
"dircp0232.tmp/dircp0231.tmp/tetcp002.inp" { send "y\r" }
"dircp0232.tmp/dircp0231.tmp" { send "y\r" }
}
or the like.Test Output
-----------------start of test output------------------
520|79 1 4959 1 1|Assertion #23 (A): Copy with -i,-R options and not
affirm.ans
520|79 1 4959 1 2| <LC> wer
520|79 1 4959 1 11|Expected exit code = 0; Received 1
520|79 1 4959 1 12|Standard error isn't empty
520|79 1 4959 1 13|Contents of out.stderr:
520|79 1 4959 1 14|expect_after: unexpected timeout
520|79 1 4959 1 15|Command failed: 'diff tetcp002.inp
dircp0232.tmp/dircp0231.t
520|79 1 4959 1 16| <LC> mp/tetcp002.inp > /dev/null'
220|79 1 1 16:40:14|FAIL
------------------end of test output-------------------Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We recommend this request be refused.
First, the suggested fix above will not work for the issue
being reported.
The detailed steps for copying files in the cp DESCRIPTION
Section do not allow prompting for directories. Prompting
is only specified for regular files.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 0593
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority