Changeset 3275 for vendor/bash/3.1-p17/general.c
- Timestamp:
- May 1, 2007, 7:20:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/bash/3.1-p17/general.c
r3232 r3275 663 663 are handled OK by the `else' part of the if statement; an empty 664 664 string is returned in that case. */ 665 #ifndef __OS2__666 665 if (i && string[i] == ':') 667 666 i++; … … 669 668 for (start = i; string[i] && string[i] != ':'; i++) 670 669 ; 671 672 #else /* __OS2__ */673 if (i && (string[i] == ':' || string[i] ==';'))674 i++;675 676 /* In OS/2, interpret either `:' or `;' as separator, except when677 the `:' looks like part of a drive letter. */678 for (start = i;; i++)679 {680 if (!string[i])681 break;682 if (string[i] == ';')683 break;684 if (string[i] != ':')685 continue;686 if (i - start != 1)687 break;688 if (!isalpha (string[i - 1]))689 break;690 }691 #endif /* __OS2__ */692 670 693 671 *p_index = i;
Note:
See TracChangeset
for help on using the changeset viewer.