I cannot reproduce this on bash 4.4:

    dualbus@yaqui:~$ { for i in '-i' '\t' '\t' '\t' '\n' 'exit\n'; do
sleep 1; printf -- "$i"; done } | script --command 'bash --norc
--noprofile'
    Script started, file is typescript
    bash-4.4$ -i
    bash: -i: command not found
    bash-4.4$ exit
    exit
    Script done, file is typescript
    dualbus@yaqui:~$ bash --version
    GNU bash, version 4.4.0(1)-release (x86_64-pc-linux-gnu)
    Copyright (C) 2016 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>

    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

Do you have the bash-completion package installed? It sounds like the
bug is in that package, which is external to the GNU bash project
(https://github.com/scop/bash-completion)

Reply via email to