End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Readline.basic_quote_characters=
Readline.basic_quote_characters = string
ext/readline/readline.c
View on GitHub ↗
static VALUE
readline_s_set_basic_quote_characters(VALUE self, VALUE str)
{
static char *basic_quote_characters = NULL;
OutputStringValue(str);
if (basic_quote_characters == NULL) {
basic_quote_characters =
ALLOC_N(char, RSTRING_LEN(str) + 1);
}
else {
REALLOC_N(basic_quote_characters, char, RSTRING_LEN(str) + 1);
}
strncpy(basic_quote_characters,
RSTRING_PTR(str), RSTRING_LEN(str));
basic_quote_characters[RSTRING_LEN(str)] = '\0';
rl_basic_quote_characters = basic_quote_characters;
return self;
}
Sets a list of quote characters which can cause a word break.
Raises NotImplementedError if the using readline library does not support.
See also
.basic_quote_characters
.basic_word_break_characters
.basic_word_break_characters=
also in
3.2 · 3.0