ast_comparator/test/student_data/handout/shlab-handout/cases/53_tsh.c
/*
 * try_execute_builtin_command - If the user has typed a built-in 
 *    command then execute it immediately.
 * Returns true if given command is built-in command, false otherwise.
 */
If the user has typed a built-in
command then execute it immediately.
Returns true if given command is built-in command, false otherwise.
If the user has typed a built - in command then execute it immediately . Returns true if given command is built - in command false otherwise .
bool builtin_cmd(char **argv)
{
	if (argv == NULL || argv[0] == NULL)
		return false; 
	if (strcmp(argv[0], "quit") == 0)
	{
		exit(0);
	}
	else if (strcmp(argv[0], "fg") == 0 || strcmp(argv[0], "bg") == 0)
	{
		do_bgfg(argv);
		return true;
	}
	else if (strcmp(argv[0], "jobs") == 0)
	{
		print_job_list(jobs);
		return true;
	}
	else
		return false;     
}
bool builtin_cmd ( char * * argv ) { if ( argv == NULL || argv [ 0 ] == NULL ) return false ; if ( strcmp ( argv [ 0 ] , " " ) == 0 ) { exit ( 0 ) ; } else if ( strcmp ( argv [ 0 ] , " " ) == 0 || strcmp ( argv [ 0 ] , " " ) == 0 ) { do_bgfg ( argv ) ; return true ; } else if ( strcmp ( argv [ 0 ] , " " ) == 0 ) { print_job_list ( jobs ) ; return true ; } else return false ; }
try_execute_builtin_command - If the user has typed a built-in
    command then execute it immediately.
try_execute_builtin_command - If the user has typed a built - in command then execute it immediately .
// Goto normal execution routine to print error message /*  Built-in commands are not executed in child process.
		 * This will exit shell process directly. */ /* not a builtin command */