This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository eshell.

View the commit online.

commit b6442c1cd43722d86e8de8ada37cb57989dba587
Author: swagtoy <m...@ow.swag.toys>
AuthorDate: Sat Oct 26 18:14:00 2024 -0400

    eshell: Make EOL more obvious
---
 eshell/src/eshell.c | 6 ++++--
 eshell/src/main.c   | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/eshell/src/eshell.c b/eshell/src/eshell.c
index 01b7f91..72d4cdf 100644
--- a/eshell/src/eshell.c
+++ b/eshell/src/eshell.c
@@ -19,9 +19,11 @@ int eshell_io_loop(struct Eshell* eshell)
 	{
 		fputs("> ", stdout);
 		char* res = fgets(in, 512, stdin);
-		if (!res)
+		if (res == NULL)
 		{
-			return 1;
+			// EOL, we hope
+			puts("");
+			return -1;
 		}
 		puts(res);
 	}
diff --git a/eshell/src/main.c b/eshell/src/main.c
index 0481756..cf3175e 100644
--- a/eshell/src/main.c
+++ b/eshell/src/main.c
@@ -42,7 +42,7 @@ main(int argc, char** argv)
 	{
 		struct Eshell* eshell;
 		eshell_init(eshell, argc, argv);
-		eshell_io_loop(eshell);
+		int ret = eshell_io_loop(eshell);
 	}
 	return 0;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to