VirtualBox

Changeset 1258 in kBuild for trunk/src/kmk/main.c


Ignore:
Timestamp:
Oct 27, 2007 5:20:27 AM (17 years ago)
Author:
bird
Message:

We have a default shell, don't waste time searing for something we've already got.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/main.c

    r1186 r1258  
    17171717   * at the wrong place when it was first evaluated.
    17181718   */
     1719#ifdef KMK /* this is really a candidate for all platforms... */
     1720  {
     1721    extern char *default_shell;
     1722    char *bin = get_path_kbuild_bin();
     1723    size_t len = strlen (bin);
     1724    default_shell = xmalloc (len + sizeof("/kmk_ash.exe"));
     1725    memcpy (default_shell, bin, len);
     1726    strcpy (default_shell + len, "/kmk_ash.exe");
     1727    no_default_sh_exe = 0;
     1728    batch_mode_shell = 1;
     1729  }
     1730#else /* !KMK */
    17191731   no_default_sh_exe = !find_and_set_default_shell(NULL);
    1720 
     1732#endif /* !KMK */
    17211733#endif /* WINDOWS32 */
    17221734  /* Figure out the level of recursion.  */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette