From 9fe518540848f6c273fa749a06437aa7bb7459ff Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 9 Oct 2020 20:32:46 +0200 Subject: Added syntax error status and discard cd too many argument on Linux --- src/hooks.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/hooks.py') diff --git a/src/hooks.py b/src/hooks.py index 58cc7a0..f1492d7 100644 --- a/src/hooks.py +++ b/src/hooks.py @@ -6,7 +6,7 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/11 16:10:20 by charles #+# #+# # -# Updated: 2020/10/08 17:32:12 by cacharle ### ########.fr # +# Updated: 2020/10/09 20:27:30 by charles ### ########.fr # # # # ############################################################################ # @@ -106,3 +106,10 @@ def error_eof_to_expected_token(output): "-c: line 1: syntax error: unexpected end of file", "syntax error expected token" ) + + +def linux_discard(output): + if config.PLATFORM == "Linux": + return "DISCARDED BY MINISHELL TEST" + else: + return output -- cgit