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

nashorn samples/exec.js has some incorrect examples

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b25
    • CPU:
      generic
    • OS:
      generic

      Description

      $EXEC("ls", undefined, "-l", "-a")
      $EXEC("ls", undefined, ["-l", "-a"])


      should be

      $EXEC("ls -l -a")
      $EXEC(["ls", "-l", "-a"])

        Attachments

          Activity

            People

            Assignee:
            pmuthuswamy Priya Lakshmi Muthuswamy (Inactive)
            Reporter:
            jlaskey Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: