aboutsummaryrefslogtreecommitdiff
path: root/src/command/builtin.cc
blob: b2c31497755b7a1b78a1a0c4ded0c5ac3e9c4edf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#include "command/builtin.h"

namespace ov4
{

using namespace std;

//array<string> builtin_cmd_list{"quit", "fg", "bg", "jobs"};

/* 
 * builtin_cmd - If the user has typed a built-in command then execute
 *    it immediately.  
 */
bool exe_bultin_command(char **argv) 
{
    if (argv == nullptr || argv[0] == nullptr) exit(1); // WTF???
    if (strcmp(argv[0], "quit") == 0) { ov4::command::quit(); return true; } 
    else return false;
}



}