Changeset 3264 for trunk


Ignore:
Timestamp:
May 1, 2007, 4:30:37 PM (18 years ago)
Author:
bird
Message:

Two driveletter cases we share with cygwin.

Location:
trunk/essentials/app-shells/bash/lib/sh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/app-shells/bash/lib/sh/pathcanon.c

    r3231 r3264  
    114114
    115115  /* POSIX.2 says to leave a leading `//' alone.  On cygwin, we skip over any
    116      leading `x:' (dos drive name). */
     116     leading `x:' (dos drive name). (Ditto on OS/2. --bird) */
    117117  if (rooted = ROOTEDPATH(path))
    118118    {
    119119      stub_char = DIRSEP;
    120 #if defined (__CYGWIN__)
     120#if defined (__CYGWIN__) || defined (__OS2__)
    121121      base = (ISALPHA((unsigned char)result[0]) && result[1] == ':') ? result + 3 : result + 1;
    122122#else
     
    129129    {
    130130      stub_char = '.';
    131 #if defined (__CYGWIN__)
     131#if defined (__CYGWIN__) || defined (__OS2__)
    132132      base = (ISALPHA((unsigned char)result[0]) && result[1] == ':') ? result + 2 : result;
    133133#else
  • trunk/essentials/app-shells/bash/lib/sh/pathphys.c

    r3231 r3264  
    105105
    106106  /* POSIX.2 says to leave a leading `//' alone.  On cygwin, we skip over any
    107      leading `x:' (dos drive name). */
    108 #if defined (__CYGWIN__)
     107     leading `x:' (dos drive name). (Ditto for OS/2. --bird) */
     108#if defined (__CYGWIN__) || defined (__OS2__)
    109109  qbase = (ISALPHA((unsigned char)workpath[0]) && workpath[1] == ':') ? workpath + 3 : workpath + 1;
    110110#else
     
    215215              q = result;
    216216              /* Duplicating some code here... */
    217 #if defined (__CYGWIN__)
     217#if defined (__CYGWIN__) || defined (__OS2__)
    218218              qbase = (ISALPHA((unsigned char)workpath[0]) && workpath[1] == ':') ? workpath + 3 : workpath + 1;
    219219#else
Note: See TracChangeset for help on using the changeset viewer.