mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-21 21:07:57 +02:00
18 lines
622 B
Plaintext
18 lines
622 B
Plaintext
#else
|
|
/* This code implements the `rest of the fields and their intervening
|
|
separators' portion of the Posix spec. The latest interpretation says
|
|
that the last non-IFS white space separator (and any adjacent IFS
|
|
white space) is removed. We repeatedly parse fields, stopping when the
|
|
last results in us hitting the end of INPUT_STRING. */
|
|
savei = t = input_string;
|
|
while (*input_string)
|
|
{
|
|
/* This call updates INPUT_STRING. */
|
|
t1 = get_word_from_string (&input_string, ifs_chars, &e);
|
|
if (*input_string)
|
|
t = input_string;
|
|
}
|
|
*t = '\0';
|
|
input_string = savei;
|
|
#endif
|