Bugs item #311595, was changed at 2009-04-11 05:30 by Ville Skyttä 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: Freddy Vulto (fvu-guest) 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: Ville Skyttä (scop-guest) Date: 2009-04-13 12:10 Message: Ok, I can reproduce now. It also appears to work with the eval if the quotes around "$( sed ... )" are removed, but those were added in http://git.debian.org/?p=bash-completion/bash-completion.git;a=commitdiff;h=fec084a69be9383776090df6facfea1a790c5c66 to fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504650 I was not able to reproduce the issue in Debian bug 504650 (works for me both with and without the quotes) but then again it is missing an exact, concrete reproducer so it could be that I'm not testing the right thing. Freddy, David? I'm not sure if the eval is needed either, but someone who understands Debian bug 504650 should check how removing the eval affects the scenario in it. ---------------------------------------------------------------------- Comment By: Olivier Crête (tester-guest) Date: 2009-04-13 01: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-13 00: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-13 00: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 19: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 _______________________________________________ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel