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

Unix wrapper scripts need to quote their arguments

XMLWordPrintable

    • 1.2beta3
    • sparc
    • solaris_2.6
    • Not verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: