Renamed commands to lowercase

This commit is contained in:
Arnau Camprubí 2022-06-20 18:06:05 +02:00
pare 95f823c2c3
commit a59ad4dea1

Veure arxiu

@ -7,19 +7,19 @@ int shell_run(char *cmd){
int ret = 0; int ret = 0;
puts("\x1b[32m"); puts("\x1b[32m");
if(!strcmp(cmd, "HELLO")){ if(!strcmp(cmd, "hello")){
printf("Hello!\n"); printf("Hello!\n");
} }
else if(!strcmp(cmd, "VERSION")){ else if(!strcmp(cmd, "version")){
printf("%s\n", OS_VERSION); printf("%s\n", OS_VERSION);
} }
else if(!strcmp(cmd, "MALLOC")){ else if(!strcmp(cmd, "malloc")){
printf("Allocated 10 bytes:\n%x\n", kmalloc(10)); printf("Allocated 10 bytes:\n%x\n", kmalloc(10));
} }
else if(!strcmp(cmd, "CALLOC")){ else if(!strcmp(cmd, "calloc")){
printf("Allocated and zeroed 10 chars:\n%x\n", kcalloc(10, sizeof(char))); printf("Allocated and zeroed 10 chars:\n%x\n", kcalloc(10, sizeof(char)));
} }
else if(!strcmp(cmd, "CLEAR")){ else if(!strcmp(cmd, "clear")){
clear_screen(); clear_screen();
} }
else{ else{