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

Discuss whether dfs -ls should escape control characters on terminal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • fs
    • None

    Description

      HADOOP-13079 adds option -q to dfs -ls to print non-printable characters as "?". This jira will decide whether to make -q the default for dfs -ls on a terminal.

      This is a split of HADOOP-13079. The split gives us more time to debate the proper default behavior and enables different target versions.

      To test whether STDOUT is connected to a terminal, I will use System.console() != null, fully aware its limitation. JNI isatty(3) is possible but too problematic as pointed out by cmccabe.

      I will survey FsShell and hdfs commands and their proper expected default behaviors. Thanks andrew.wang for the suggestion. More jiras may follow.

      Attachments

        Issue Links

          Activity

            People

              jzhuge John Zhuge
              jzhuge John Zhuge
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: