Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3792

exit code from "hadoop dfs -test ..." is wrong for Unix shell

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.17.1
    • Fix Version/s: 0.19.0
    • Component/s: fs
    • Labels:
      None
    • Environment:

      any Bourne-derived shell

    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Changed exit code from hadoop.fs.FsShell -test to match the usual Unix convention.

      Description

      The exit code for the "test" command in hadoop.fs.FsShell is backwards relative to the Unix shell, which interprets an exit code of 0 as true and anything else as false.

        Attachments

          Activity

            People

            • Assignee:
              sluskyb Ben Slusky
              Reporter:
              sluskyb Ben Slusky
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: