-
Notifications
You must be signed in to change notification settings - Fork 0
/
aux_help2.c
executable file
·40 lines (36 loc) · 1.02 KB
/
aux_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
37
38
39
40
#include "main.h"
/**
* aux_help - Help information for the builtin help.
* Return: no return
*/
void aux_help(void)
{
char *help = "help: help [-dms] [pattern ...]\n";
write(STDOUT_FILENO, help, _strlen(help));
help = "\tDisplay information about builtin commands.\n ";
write(STDOUT_FILENO, help, _strlen(help));
help = "Displays brief summaries of builtin commands.\n";
write(STDOUT_FILENO, help, _strlen(help));
}
/**
* aux_help_alias - Help information for the builtin alias.
* Return: no return
*/
void aux_help_alias(void)
{
char *help = "alias: alias [-p] [name[=value]...]\n";
write(STDOUT_FILENO, help, _strlen(help));
help = "\tDefine or display aliases.\n ";
write(STDOUT_FILENO, help, _strlen(help));
}
/**
* aux_help_cd - Help information for the builtin alias.
* Return: no return
*/
void aux_help_cd(void)
{
char *help = "cd: cd [-L|[-P [-e]] [-@]] [dir]\n";
write(STDOUT_FILENO, help, _strlen(help));
help = "\tChange the shell working directory.\n ";
write(STDOUT_FILENO, help, _strlen(help));
}