Lines 180-186
Link Here
|
180 |
separator = strchr (spec, ':'); |
180 |
separator = strchr (spec, ':'); |
181 |
|
181 |
|
182 |
/* If there is no colon, then see if there's a `.'. */ |
182 |
/* If there is no colon, then see if there's a `.'. */ |
183 |
if (separator == NULL) |
183 |
if (separator == NULL && (!getenv ("POSIXLY_CORRECT") || posix2_version() < 200112)) |
184 |
{ |
184 |
{ |
185 |
dot = strchr (spec, '.'); |
185 |
dot = strchr (spec, '.'); |
186 |
/* If there's no colon but there is a `.', then first look up the |
186 |
/* If there's no colon but there is a `.', then first look up the |
Lines 189-196
Link Here
|
189 |
as a separator. */ |
189 |
as a separator. */ |
190 |
/* FIXME: accepting `.' as the separator is contrary to POSIX. |
190 |
/* FIXME: accepting `.' as the separator is contrary to POSIX. |
191 |
someday we should drop support for this. */ |
191 |
someday we should drop support for this. */ |
192 |
if (dot) |
192 |
if (dot) { |
|
|
193 |
if (!(posix2_version() < 200112)) |
194 |
error(0, 0, _("`%s' syntax is obsolete; use `:' since this will be removed in the future"), spec_arg); |
193 |
maybe_retry = 1; |
195 |
maybe_retry = 1; |
|
|
196 |
} |
194 |
} |
197 |
} |
195 |
|
198 |
|
196 |
retry: |
199 |
retry: |