forked from adiozdaniel/simple_shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_help2.c
36 lines (33 loc) · 752 Bytes
/
_help2.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "main.h"
/**
* _help - Help information for the builtin help
*/
void _help(void)
{
char *help = "help: help [-dms] [pattern ...]\n";
_print(help);
help = "\tDisplay information about builtin commands.\n ";
_print(help);
help = "Displays brief summaries of builtin commands.\n";
_print(help);
}
/**
* _help_alias - Help information for the builtin alias
*/
void _help_alias(void)
{
char *help = "alias: alias [-p] [name[=value]...]\n";
_print(help);
help = "\tDefine or display aliases.\n ";
_print(help);
}
/**
* _help_cd - Help information for the builtin alias
*/
void _help_cd(void)
{
char *help = "cd: cd [-L|[-P [-e]] [-@]] [dir]\n";
_print(help);
help = "\tChange the shell working directory.\n ";
_print(help);
}