[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 4/6] commands/ls: Output path for single file arguments given
From: |
Glenn Washburn |
Subject: |
[PATCH v4 4/6] commands/ls: Output path for single file arguments given with path |
Date: |
Mon, 6 Jan 2025 01:02:42 -0600 |
Signed-off-by: Glenn Washburn <development@efficientek.com>
---
grub-core/commands/ls.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/grub-core/commands/ls.c b/grub-core/commands/ls.c
index ed296a536554..e33c16158d63 100644
--- a/grub-core/commands/ls.c
+++ b/grub-core/commands/ls.c
@@ -108,6 +108,8 @@ print_file (const char *filename, const struct
grub_dirhook_info *info,
if (! ctx->longlist)
{
+ if (ctx->filename != NULL)
+ grub_xputs (ctx->dirname);
grub_printf ("%s%s ", filename, info->dir ? "/" : "");
return 0;
}
--
2.34.1
- [PATCH v4 0/6] More ls improvements, Glenn Washburn, 2025/01/06
- [PATCH v4 1/6] commands/ls: Return proper GRUB_ERR_* for functions returning type grub_err_t, Glenn Washburn, 2025/01/06
- [PATCH v4 3/6] commands/ls: Show modification time for file paths, Glenn Washburn, 2025/01/06
- [PATCH v4 2/6] commands/ls: Merge print_files_long and print_files into print_file, Glenn Washburn, 2025/01/06
- [PATCH v4 4/6] commands/ls: Output path for single file arguments given with path,
Glenn Washburn <=
- [PATCH v4 5/6] commands/ls: Print full paths for file args, Glenn Washburn, 2025/01/06
- [PATCH v4 6/6] commands/ls: Add directory header for dir args, Glenn Washburn, 2025/01/06