HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0596 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 0596.


Report 0596 Actions


    Problem Report Number 0596
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0200
    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 XOPEN.cmd/uux 1025
    Problem Summary PG4C.00076 This test fails because of improper word expansion of a command line argument.
    Problem Text
    This test fails because of improper word expansion of a command
    line argument.

    tp1025() is expecting word expansion to occur in the wrong order.
    Consider line 1619 of uux.sh:
    eval ls -d ~$VSC_TESTER > uux_25_eso 2> /dev/null
    ^this is a tilde
    CAE Specification, Commands and Utilities Issue 4, Version 2, section
    26, number 1 under "the order of word expansion" states that the
    tilde expansion should occur before parameter expansion.
    The suite expects ~$VSC_TESTER to expand to the home directory of the
    value of VSC_TESTER. For this to happen, $VSC_TESTER would have
    to be expanded first.

    The implementation under test correctly expands ~ to /tmp/usr/vsc0
    and then expands $VSC_TESTER to VSC0. The test is unresolved because
    the ls -ld /tmp/usr/vsc0VSC0 fails.

    Test Output
    400|7 1025 1 13:13:54|IC Start
    200|7 1 13:13:54|TP Start
    520|7 1 180420645 1 1|Assertion #1025 (A): basic uux command;pathname preceded
    520|7 1 180420645 1 2| <LC> by ~name
    520|7 1 180420645 1 11|Command failed: 'eval ls -d ~VSC0 > uux_25_eso 2> /dev/n
    520|7 1 180420645 1 12| <LC> ull'
    220|7 1 2 13:14:03|UNRESOLVED
    410|7 1025 1 13:14:04|IC End

    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.

    We believe the test is correct.

    Tilde expansion does occur before parameter expansion, but the eval
    statement is being used which causes word expansions and
    subsequent tilde expansion to occur again.

    The test suite expects the tilde not to be expanded the first time
    because "~$VSC_TESTER" is not a valid username. The standard defines
    the characters available for tilde expansion to be

    A tilde-prefix consists of an unquoted tilde character
    at the beginning of a word, followed by all of the
    characters preceding the first unquoted slash in the
    word, or all the characters in the word if there is no
    slash.

    The parameter expansion occurs and results in "~VSC0" if
    VSC_TESTER=VSC0. When the eval statement is performed the second
    time, "~VSC0" is a valid login, and it should expand to the expected
    login directory.

    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:

     

    Back   


Contact the Certification Authority