From 773b546f429cf51b16049e122828f5549c1f5fa2 Mon Sep 17 00:00:00 2001 From: hellisabove Date: Mon, 10 Jan 2022 00:32:18 +0200 Subject: [PATCH] Cleaned a little bit --- shell.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/shell.c b/shell.c index f2922eb..77b5899 100644 --- a/shell.c +++ b/shell.c @@ -108,10 +108,7 @@ void execArgsPiped(char** parsed, char** parsedpipe) // Help command builtin void openHelp() { - puts("\n***WELCOME TO MY SHELL HELP***" - "\nCopyright @ Suprotik Dey" - "\n-Use the shell at your own risk..." - "\nList of Commands supported:" + puts("\nList of Commands supported:" "\n>cd" "\n>ls" "\n>exit" @@ -132,7 +129,6 @@ int ownCmdHandler(char** parsed) ListOfOwnCmds[0] = "exit"; ListOfOwnCmds[1] = "cd"; ListOfOwnCmds[2] = "help"; - ListOfOwnCmds[3] = "hello"; for (i = 0; i < NoOfOwnCmds; i++) { if (strcmp(parsed[0], ListOfOwnCmds[i]) == 0) { @@ -150,13 +146,6 @@ int ownCmdHandler(char** parsed) case 3: openHelp(); return 1; - case 4: - username = getenv("USER"); - printf("\nHello %s.\nMind that this is " - "not a place to play around." - "\nUse help to know more..\n", - username); - return 1; default: break; }