mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-13 06:29:54 +02:00
System/Shell/Commands: Use original argv as pathname in error messages
This commit is contained in:
@@ -32,7 +32,7 @@ I64 @shell_cmd_cat(@shell* sh, I64 argc, U8** argv)
|
||||
filename = @shell_expand_relative_path(sh, argv[i]);
|
||||
if (!FileSystem.PathExists(filename)) {
|
||||
res = 2;
|
||||
StrPrint(&msg, "cat: cannot access '%s': No such file or directory\n", filename);
|
||||
StrPrint(&msg, "cat: cannot access '%s': No such file or directory\n", argv[i]);
|
||||
Stdio.WriteLine(sh, &msg);
|
||||
} else {
|
||||
buf = FileSystem.ReadFile(filename, &size);
|
||||
|
||||
Reference in New Issue
Block a user