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)