Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8166051

[jline] Cannot parse .inputrc with \r

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Labels:
      None

      Description

      Consider an .inputrc file which contains '\r' character (see attachment). This causes the IllegalArgumentException below. The reason is that BufferedReader.readLine splits lines on \n or \r, regardless of the platform.

      [WARN] Unable to parse user configuration:
      java.lang.IllegalArgumentException: Missing closing quote on line '"'
              at jdk.internal.jline.console.ConsoleKeys.loadKeys(jdk.internal.le@9-internal/ConsoleKeys.java:173)
              at jdk.internal.jline.console.ConsoleKeys.loadKeys(jdk.internal.le@9-internal/ConsoleKeys.java:73)
              at jdk.internal.jline.console.ConsoleKeys.<init>(jdk.internal.le@9-internal/ConsoleKeys.java:35)
              at jdk.internal.jline.console.ConsoleReader.<init>(jdk.internal.le@9-internal/ConsoleReader.java:240)
              at jdk.internal.jline.console.ConsoleReader.<init>(jdk.internal.le@9-internal/ConsoleReader.java:225)
              at jdk.internal.jline.console.ConsoleReader.<init>(jdk.internal.le@9-internal/ConsoleReader.java:221)
              at jdk.internal.jshell.tool.ConsoleIOContext.<init>(jdk.jshell@9-internal/ConsoleIOContext.java:89)
              at jdk.internal.jshell.tool.JShellTool.start(jdk.jshell@9-internal/JShellTool.java:490)
              at jdk.internal.jshell.tool.JShellTool.main(jdk.jshell@9-internal/JShellTool.java:481)

        Attachments

          Activity

            People

            • Assignee:
              jlahoda Jan Lahoda
              Reporter:
              jlahoda Jan Lahoda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: