[Bug 514989] Re: PHP process output (?) that breaks bash completion

Peter Newman 514989 at bugs.launchpad.net
Fri Sep 11 11:58:38 UTC 2015


For anyone else who's hit this, the page has now moved to http://www.clock.co.uk/blog/bash-completion-problems-with-option-lists-generated-by-php it's also still available in Google's cache here:
http://webcache.googleusercontent.com/search?q=cache:n-AfIM1nmMYJ:http://clock.co.uk/blog/bash-completion-problems-with-option-lists-generated-by-php%2Bbash+completion+problems+with+option+lists+generated+by+php&rls=com.microsoft:en-gb:IE-SearchBox&oe=&gfe_rd=cr&gws_rd=cr&hl=en&ct=clnk

And the key info (in case it vanishes again) is:
		targets=`echo ""| maiden -b | sort -u`
		COMPREPLY=( $(compgen -W "${targets}" -- ${cur}) )
		return 0

i.e. add echo "" | before your PHP script.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/514989

Title:
  PHP process output (?) that breaks bash completion

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/514989/+subscriptions



More information about the Ubuntu-server-bugs mailing list