return CMD_FAILURE;
ds_init_empty (&command);
- while (lex_token (lexer) == T_STRING)
+ while (lex_is_string (lexer))
{
if (!ds_is_empty (&command))
- ds_put_char (&command, '\n');
+ ds_put_byte (&command, '\n');
ds_put_substring (&command, ds_ss (lex_tokstr (lexer)));
lex_get (lexer);
}