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

Directory with spaces in name: Causes tool confusion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 9
    • 8u60, 9
    • install
    • x86
    • os_x

      A DESCRIPTION OF THE REQUEST :
      The directory install/make/installer/bundles/macosx/resources/i18n/ has a directory named "finish_generic copy 2.rtfd" with spaces in it. That confuses some tools that enumerate files, separating them with spaces. (I *know* how to deal with files with spaces in their names, but it uses more CPU cycles to quote them properly.)

      JUSTIFICATION :
      If there is no good reason for the directory to have spaces in its name it would make things easier for everyone.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The directory could be named "finish_generic.rtfd"
      ACTUAL -
      The directory is named "finish_generic copy 2.rtfd".

      ---------- BEGIN SOURCE ----------
      $ ls -lR /java/re/jdk/8u60/promoted/fcs/b31/ws/install/make/installer/bundles/macosx/resources/i18n
      /java/re/jdk/8u60/promoted/fcs/b31/ws/install/make/installer/bundles/macosx/resources/i18n:
      total 3
      dr-xr-xr-x 2 penlib java_re 4 Aug 12 13:40 finish_generic copy 2.rtfd

      /java/re/jdk/8u60/promoted/fcs/b31/ws/install/make/installer/bundles/macosx/resources/i18n/finish_generic copy 2.rtfd:
      total 33
      -r--r--r-- 1 penlib java_re 15236 Aug 12 13:40 background2.tif
      -r--r--r-- 1 penlib java_re 480 Aug 12 13:40 TXT.rtf
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      One can pipe file names one at a time to something that quotes them. E.g.,

          sed -e "s/^/'/" -e "s/$/'/"

      but that's more work, and one has to remember to add it to one's pipeline when enumerating files.

            yaow Yao Wang (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: