fix to readline redisplay of invisible chars at end of line; fix to here-document delimiter quote removal; prompt expansion makes invisible chars in w, W, s visible

This commit is contained in:
Chet Ramey
2022-03-07 09:21:09 -05:00
parent 6c4a9a5cb7
commit b4e5e5505c
13 changed files with 129 additions and 24 deletions
+6
View File
@@ -1128,6 +1128,7 @@ run_startup_files ()
#endif
int sourced_login, run_by_ssh;
#if 1 /* TAG:bash-5.3 andrew.gregory.8@gmail.com 2/21/2022 */
/* get the rshd/sshd case out of the way first. */
if (interactive_shell == 0 && no_rc == 0 && login_shell == 0 &&
act_like_sh == 0 && command_execution_string)
@@ -1137,11 +1138,16 @@ run_startup_files ()
(find_variable ("SSH2_CLIENT") != (SHELL_VAR *)0);
#else
run_by_ssh = 0;
#endif
#endif
/* If we were run by sshd or we think we were run by rshd, execute
~/.bashrc if we are a top-level shell. */
#if 1 /* TAG:bash-5.3 */
if ((run_by_ssh || isnetconn (fileno (stdin))) && shell_level < 2)
#else
if (isnetconn (fileno (stdin) && shell_level < 2)
#endif
{
#ifdef SYS_BASHRC
# if defined (__OPENNT)