ast_comparator/test/student_data/handout/shlab-handout/cases/36_tsh.c
/*
 * builtin_cmd - If the user has typed a built-in command then execute
 *    it immediately.
 */
If the user has typed a built-in command then execute
it immediately.
If the user has typed a built - in command then execute it immediately .
int builtin_cmd(char **argv)
{
  char *cmd = argv[0];
  if(!strcmp(cmd, "quit"))
    exit(0);
  else if(!strcmp(cmd, "jobs")){
    listjobs(jobs);
    return 1;
  }
  else if(!strcmp(cmd, "bg") || !strcmp(cmd, "fg")){
    do_bgfg(argv);
    return 1;
  }
  else
    return 0;     
}
int builtin_cmd ( char * * argv ) { char * cmd = argv [ 0 ] ; if ( ! strcmp ( cmd , " " ) ) exit ( 0 ) ; else if ( ! strcmp ( cmd , " " ) ) { listjobs ( jobs ) ; return 1 ; } else if ( ! strcmp ( cmd , " " ) || ! strcmp ( cmd , " " ) ) { do_bgfg ( argv ) ; return 1 ; } else return 0 ; }
builtin_cmd - If the user has typed a built-in command then execute
    it immediately.
builtin_cmd - If the user has typed a built - in command then execute it immediately .
/* not a builtin command */