From f2b889a1c2dadf354960486b7d6b3e81b1391ee4 Mon Sep 17 00:00:00 2001 From: JaydenMW Date: Sat, 20 Feb 2021 21:28:14 +0000 Subject: [PATCH] Update shell.py --- shell.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell.py b/shell.py index 955dd51..f5d3169 100644 --- a/shell.py +++ b/shell.py @@ -54,11 +54,11 @@ def pclish_cd(path): except Exception: print("cd: no such file or directory: {}".format(path)) -def pclish_echo(TXT): +def pclish_echo(txt): try: - print(TXT) + os.chdir(os.path.abspath(path)) except Exception: - print("You need to provide arguments") + print("You need to provide arguments for this command.".format(path)) def pclish_oscmd(ARGS): os.system(ARGS)