VirtualBox

Changeset 1373 in kBuild for trunk/src/kmk


Ignore:
Timestamp:
Dec 14, 2007 2:58:17 AM (17 years ago)
Author:
bird
Message:

Don't get excited about the ~ in 8.3 file names, avoid lot's of slow shell work. (windows)

File:
1 edited

Legend:

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

    r1372 r1373  
    27352735        }
    27362736      else if (strchr (sh_chars, *p) != 0)
     2737#ifdef KMK
     2738        {
     2739          /* Tilde is only special if at the start of a path spec,
     2740             i.e. don't get excited when we by 8.3 files on windows. */
     2741          if (   *p == '~'
     2742              && p > line
     2743              && !isspace (p[-1])
     2744              && p[-1] != '"'
     2745              && p[-1] != '\'')
     2746            *ap++ = *p;
     2747          else
     2748            /* Not inside a string, but it's a special char.  */
     2749            goto slow;
     2750        }
     2751#else  /* !KMK */
    27372752        /* Not inside a string, but it's a special char.  */
    27382753        goto slow;
     2754#endif /* !KMK */
    27392755#ifdef  __MSDOS__
    27402756      else if (*p == '.' && p[1] == '.' && p[2] == '.' && p[3] != '.')
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