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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.17.1
    • 0.19.0
    • fs
    • None
    • any Bourne-derived shell

    • Incompatible change, Reviewed
    • 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

        1. fsshell-test.patch
          2 kB
          Ben Slusky

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: