-
Notifications
You must be signed in to change notification settings - Fork 0
/
aid_assist2.c
40 lines (36 loc) · 1.08 KB
/
aid_assist2.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"
/**
* aid_assist - assist information for the all_builtin assist.
* Return: no return
*/
void aid_assist(void)
{
char *assist = "assist: assist [-dms] [pattern ...]\n";
write(STDOUT_FILENO, assist, _strlen(assist));
assist = "\tDisplay information about all_builtin commands.\n ";
write(STDOUT_FILENO, assist, _strlen(assist));
assist = "Displays brief summaries of all_builtin commands.\n";
write(STDOUT_FILENO, assist, _strlen(assist));
}
/**
* aid_assist_alias - assist info for the all_builtin alias.
* Return: no return
*/
void aid_assist_alias(void)
{
char *assist = "alias: alias [-p] [name[=value]...]\n";
write(STDOUT_FILENO, assist, _strlen(assist));
assist = "\tDefine or display aliases.\n ";
write(STDOUT_FILENO, assist, _strlen(assist));
}
/**
* aid_assist_cd - assist info for the all_builtin alias.
* Return: null
*/
void aid_assist_cd(void)
{
char *assist = "cd: cd [-L|[-P [-e]] [-@]] [dir]\n";
write(STDOUT_FILENO, assist, _strlen(assist));
assist = "\tChange the shell working directory.\n ";
write(STDOUT_FILENO, assist, _strlen(assist));
}