The null redirect was used for the /etc/issue to not be shown here. I mean
although we dont have any tty attached, i assume the builtin should not do
this. I only tested it with an older release, as you said, it seems to be
corrected.
Vincent
De : Bob Proulx <[email protected]>
À : Vincent Leduc <[email protected]>
Cc : "[email protected]" <[email protected]>
Envoyé le : Vendredi 26 décembre 2014 19h36
Objet : Re: bash complete.c
Vincent Leduc wrote:
> sh-3.2# ssh localhost bash -i 2>/dev/null
> root@localhost's password:
> [tab][tab][enter]
> Display all 1797 possibilities? (y or n)[enter]
Although I can reproduce this in bash 4.2 it is not reproducible for
me in bash 4.3. I assume that it was improved there.
One problem in your example is that your bash does not have a tty
attached to it. Add -t to ssh and you will then get a tty and you
won't need to redirect 2>/dev/null anymore.
ssh -t localhost bash
Bob