- Timestamp:
- May 1, 2007, 4:30:37 PM (18 years ago)
- 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 114 114 115 115 /* 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) */ 117 117 if (rooted = ROOTEDPATH(path)) 118 118 { 119 119 stub_char = DIRSEP; 120 #if defined (__CYGWIN__) 120 #if defined (__CYGWIN__) || defined (__OS2__) 121 121 base = (ISALPHA((unsigned char)result[0]) && result[1] == ':') ? result + 3 : result + 1; 122 122 #else … … 129 129 { 130 130 stub_char = '.'; 131 #if defined (__CYGWIN__) 131 #if defined (__CYGWIN__) || defined (__OS2__) 132 132 base = (ISALPHA((unsigned char)result[0]) && result[1] == ':') ? result + 2 : result; 133 133 #else -
trunk/essentials/app-shells/bash/lib/sh/pathphys.c
r3231 r3264 105 105 106 106 /* 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__) 109 109 qbase = (ISALPHA((unsigned char)workpath[0]) && workpath[1] == ':') ? workpath + 3 : workpath + 1; 110 110 #else … … 215 215 q = result; 216 216 /* Duplicating some code here... */ 217 #if defined (__CYGWIN__) 217 #if defined (__CYGWIN__) || defined (__OS2__) 218 218 qbase = (ISALPHA((unsigned char)workpath[0]) && workpath[1] == ':') ? workpath + 3 : workpath + 1; 219 219 #else
Note:
See TracChangeset
for help on using the changeset viewer.