-
Bug
-
Resolution: Unresolved
-
Major
-
RH124 - RHEL10.0-en-3-20250821
-
None
-
False
-
-
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: