Files
bash/builtins/readsave
T
2011-12-03 13:43:49 -05:00

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