Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-15166

Incorrect Directory Listing Shown in Brace Expansion Example

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • RH124 - RHEL10.x NEXT
    • RH124 - RHEL10.0-en-3-20250821
    • RH0016L, RH124
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/rh124-10.0/pages/ch07s05 
      Reporter RHNID: shasingh01
      Section Title:  Matching File Names with Shell Expansions                                                                       

      Issue description

      In the Linux learning module/example demonstrating the use of brace expansion to create multiple directories, the command output shown is inaccurate and potentially misleading to users.

      ls ../RHEL*

      is used after creating directories with:

      mkdir ../RHEL{8,9,10}

      However, the listed output shown is:

      RHEL8  RHEL9  RHEL10

      This is incorrect, as it omits the relative path prefix (../). The correct output should be:

      ../RHEL8  ../RHEL9  ../RHEL10

      Alternatively, if multiple directories are listed and they are empty, ls will format the output in multi-line form:

      ../RHEL10:
      ../RHEL8:
      ../RHEL9:

      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              zoltanmolnar Zoltan Molnar
              shasingh01 Shashi Singh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: