]> git.ipfire.org Git - thirdparty/grub.git/commit
commands/ls: Add directory header for dir args
authorGlenn Washburn <development@efficientek.com>
Sun, 2 Mar 2025 05:15:37 +0000 (23:15 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 5 Mar 2025 20:24:48 +0000 (21:24 +0100)
commit488ac8bda9a8e33cad7096e6a09eb89da84aeb85
treebd312f932bfd8e48ce066084a4a88c380bb53a58
parent096bf59e4c852d13cccec97511acfa2db7ee9980
commands/ls: Add directory header for dir args

Like the GNU ls, first print a line with the directory path before printing
files in the directory, which will not have a directory component, but only
if there is more than one argument.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/commands/ls.c