From 778d3b97b68fd06dc165986a79c1eba298374fdf Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Mon, 22 Jun 2026 15:40:21 +0200 Subject: [PATCH] Add comment to `odin root` about why there's no newline Add comment to `odin root` about why there's no newline, and why we closed #6834 and #6871. Future such pull requests will be closed without comment. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 3a72c2a9c..75640809e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3842,6 +3842,10 @@ int main(int arg_count, char const **arg_ptr) { usage(args[0]); return 1; } + // NOTE(Jeroen): `odin root` omits it on purpose so that it can be used in scripts. + // e.g. `ODIN_CORE="$(odin root)core"`. + // Human convenience is not a consideration. + // Further pull requests to a newline will be closed without comment. gb_printf("%.*s", LIT(odin_root_dir())); return 0; } else if (command == "clear-cache") {