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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0587 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 0587.


Report 0587 Actions


    Problem Report Number 0587
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0191
    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/xargs 11
    Problem Summary PG4C.00085 The IR claims that -- is not being used properly.
    Problem Text
    The IR claims that -- is not being used properly.

    The above tests fail because of the insufficient number of back-slashes
    to escape the input command character for ex.
    This case is a End-of-options delimiter test for xargs.
    The objective is to "Test simple input using a shell script whose
    name begins with "-" which envokes "echo". Expect same output as
    "echo" on command line".

    The test fails due to the fact that the filename '--' is interpreted
    by the shell as opposed to the command xargs. Also as '--' is end of
    delimiter option for commands and utilities using getopt() it is generally
    advisible to escape -- with another -- so that when we do an exec of the
    the first of the -- will be interpreted by the shell and the next by
    the xargs command in question which will then execute the -- shell script.
    Test Output
    --------------- xargs
    ***********************************************************************
    /tset/POSIX.cmd/xargs/xargs.ex 1 Failed

    Test Information:
    Assertion #11 (A): End-of-options delimiter test
    *ERROR - command execution produced different exit codes
    *ERROR - Return Status = 0 127

    ***********************************************************************

    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.

    The test generates three sets of --'s which should be sufficient to
    accomodate the end of option requirements for the various intermediate
    utilities that may be called.

    The command line in question is

    ExecuteCommand "$cmd -- $shellFile $shellfile" $inputFile \
    $stdoutFileB $stderrFileB

    where
    cmd=xargs
    shellfile=--

    The expression results in the following xargs command:

    eval xargs -- -- -- <$inputFile >$stdoutFileB 2>$stderrFileB
    a b c

    The eval has no meaningful effect in this case. To simplify the
    discussion each set of -- will be referred as set a, b, or c.

    Set a is interpreted as the end of options to xargs.

    Set b is either interpreted as the command to be executed or as
    the end of options specifier to the shell. This depends on the
    implementation.

    If set b is the command then set c is becomes the initial
    argument of the set b command. In this case set c is discarded
    by the command before it echos its other arguments.

    If xargs executes commands using a mechanism that requires an end
    of options argument then set b is used as that argument. In this
    case set c becomes the command executed and there is no
    additional set of --'s to be concerned with.

    In either case the rest of the arguments to the command come from
    the inputFile as a result of xargs operation.

    It is not clear from the submitter's comments what exactly needs to
    be quoted with backslashes. There are no references to ex in
    the test. We do not believe quoting or backslashes are required
    anywhere.

    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