Thanks for the hint!
bash -x ...
++++ complete -D -F _completion_loader ++++ [[ -d /etc/bash_completion.d ]] ++++ [[ -r /etc/bash_completion.d ]] ++++ [[ -x /etc/bash_completion.d ]] +++++ LC_ALL=C +++++ command ls /etc/bash_completion.d +++++ ls /etc/bash_completion.d ++++ for i in '$(LC_ALL=C command ls "$BASH_COMPLETION_COMPAT_DIR")' ++++ i=/etc/bash_completion.d/dnf-completion.bash ++++ [[ dnf-completion.bash != @(@(#*#|*@(~|.@(bak|orig|rej|swp|dpkg*|rpm@(orig|new|save))))|Makefile*|@()) ]] ++++ [[ -f /etc/bash_completion.d/dnf-completion.bash ]] ++++ [[ -r /etc/bash_completion.d/dnf-completion.bash ]] ++++ . /etc/bash_completion.d/dnf-completion.bash +++++++ dnf help +++++++ sed -e 's/( )+.*$//g' -e '/^$/d' -e '/^[A-Z ]/d' -e /:/d Repository google-chrome is listed more than once in the configuration
And there is the message!
I have seen sometimes long hangs trying to ssh into the machine. After printing 'last login...' and before getting this message and a bash prompt. I'm just guessing this is what is causing sometimes long delay.
On Tue, Dec 9, 2014 at 10:11 AM, Igor Gnatenko i.gnatenko.brain@gmail.com wrote:
If we're talking about bash startup, so there nothing what takes long time.
bash should load functions from dnf-completion.bash and should not execute something.
I think would be good to get logs from command `bash -x`
On Tue, Dec 9, 2014 at 6:06 PM, Jan Zelený jzeleny@redhat.com wrote:
On 9. 12. 2014 at 18:52:29, Igor Gnatenko wrote:
On Tue, Dec 9, 2014 at 5:34 PM, Neal Becker ndbecker2@gmail.com
wrote:
I'm sorry, I'm confused. The problem is that it seems with every shell startup, some dnf
command is
run (perhaps check-update?). I did not run the command. I don't
want it
to run - sometimes it slows shell startup.
You mean GNOME shell startup? or what startup?
IIUIC that would be bash startup. Is is possible that the bash completion script does some preloading at that time?
Jan
-- -Igor Gnatenko