Ignore:
Timestamp:
Apr 29, 2007, 10:43:43 PM (18 years ago)
Author:
bird
Message:

Applied Brendan's patches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/app-shells/bash/general.c

    r3231 r3232  
    663663     are handled OK by the `else' part of the if statement; an empty
    664664     string is returned in that case. */
     665#ifndef __OS2__
    665666  if (i && string[i] == ':')
    666667    i++;
     
    668669  for (start = i; string[i] && string[i] != ':'; i++)
    669670    ;
     671
     672#else /* __OS2__ */
     673  if (i && (string[i] == ':' || string[i] ==';'))
     674    i++;
     675
     676  /* In OS/2, interpret either `:' or `;' as separator, except when
     677     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__ */
    670692
    671693  *p_index = i;
Note: See TracChangeset for help on using the changeset viewer.