diff --git a/Microshell/help b/Microshell/help index ff12bcb..19e6780 100644 --- a/Microshell/help +++ b/Microshell/help @@ -3,14 +3,27 @@ Microshell Help ------------- General info Author= Jakub Adamski - +Index number=s444341 +Limits +Max length of line=1000 +Max number of arguments=100 +Max length of argument=100 ------------- Working commands help - manual exit - ends microshell -cd - changing directory -(nie dziala dla np ~/) -jak zrobie echo $HOME tez nie dziala -dodac informacje o limitach dlugosci albo zrobic -to dynamicznie +cd - changing directory + needs exacly 1 argument + prints error when more/less +spath: + help - shows help page + 0 - turns off displaying current directory + 1 - turns on displaying current directory +PATH commands +WARNING +dont use path shorcuts +example cd ~/ +or echo $HOME +------------- +q to exit! diff --git a/Microshell/microshell b/Microshell/microshell index 9fc8062..37159ed 100755 Binary files a/Microshell/microshell and b/Microshell/microshell differ diff --git a/Microshell/microshell.c b/Microshell/microshell.c index 52246c9..6d0ef53 100644 --- a/Microshell/microshell.c +++ b/Microshell/microshell.c @@ -106,7 +106,7 @@ int main (){ } else if (!strcmp(argv[0], "help")){ if (fork() == 0){ - execlp("cat", "cat", "help", NULL); + execlp("less", "less", "help", NULL); perror("execlp"); exit(EXIT_FAILURE); }