[Bash-completion-devel] [bash-completion-Bugs][311595] tries to execute ssh UserKnownHostsFile
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Sun Apr 12 22:07:04 UTC 2009
Bugs item #311595, was changed at 2009-04-10 22:30 by Olivier Crête
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311595&group_id=100114
Status: Open
Priority: 3
Submitted By: Olivier Crête (tester-guest)
Assigned to: Nobody (None)
Summary: tries to execute ssh UserKnownHostsFile
Distribution: Gentoo
Originally reported in: None
Milestone: None
Status: None
Original bug number:
Initial Comment:
The _known_hosts function tries to execute the UserKnownHostsFile file instead of just getting its name, there is an extra "eval", if you just remove it, it works fine.
----------------------------------------------------------------------
Comment By: Olivier Crête (tester-guest)
Date: 2009-04-12 18:07
Message:
The difference is that I have two UserKnownHost files in different "Host" sections... So there is a newline in between...
Simple example:
aa=$(eval echo "$(echo /dev/null; echo /dev/null)")
So bashcomp has to be able to deal with multiple answers here, just removing the eval seems to work.. I don't think its required anyway, but maybe I'm missing something (I'm not a bash expert).
----------------------------------------------------------------------
Comment By: Ville Skyttä (scop-guest)
Date: 2009-04-12 17:40
Message:
I can't reproduce - the two eval lines in _known_hosts are both like
foo=$( eval echo bar )
which for me does not try to execute "bar".
----------------------------------------------------------------------
Comment By: Olivier Crête (tester-guest)
Date: 2009-04-12 17:03
Message:
Its 1.0.. and I also checked the git master (but didn't test it).
----------------------------------------------------------------------
Comment By: Ville Skyttä (scop-guest)
Date: 2009-04-12 12:47
Message:
Which version of bash_completion is this? If not 1.0, please test with it.
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311595&group_id=100114
More information about the Bash-completion-devel
mailing list