Oh, my god... bc with readline support does not work at all:

echo 10 / 3 | bc
prints
	10 / 3\r\n\r3\r\n
with a stock readline... Our readline does not echo when it does not
have a tty, so it printed:
	\r3\n
I removed printing the printing of \r for now...
This commit is contained in:
christos 1997-12-20 19:19:07 +00:00
parent c49189ae41
commit a6e206b6f7
1 changed files with 2 additions and 0 deletions

View File

@ -107,7 +107,9 @@ rl_input (buf, result, max)
if (rl_len != 1)
add_history (rl_line);
rl_line[rl_len-1] = '\n';
#if 0
printf ("\r");
#endif
fflush (stdout);
}