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

Unix wrapper scripts need to quote their arguments

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2beta3
    • CPU:
      sparc
    • OS:
      solaris_2.6
    • Verification:
      Not verified

      Description

      The wrapper scripts used on Solaris and other Unix systems to invoke
      the various JDK programs do not properly quote their arguments. File
      names containing spaces and other special characters (e.g., '$') cannot
      be used. For example, if you run this command:

      jar cf f.jar 'f$1.class' 'f$2.class' 'f$3.class' f.class

      where all the class files mentioned exist the jar tool will not work.
      This problem is not limited to the "jar" script but affects all of the
      Unix wrapper scripts.

      A related problem is that environment variables (e.g., JAVA_HOME, CLASSPATH)
      may contain file names with characters that need to be quoted, so these
      variables must be quoted whenever they are used.

        Attachments

          Activity

            People

            Assignee:
            apalanissunw Anand Palaniswamy (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: