From: Zbigniew Jędrzejewski-Szmek Date: Wed, 10 Apr 2013 23:06:00 +0000 (-0400) Subject: shell-completion: replace printf with echo X-Git-Tag: v202~154 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=79c1638303142b81e1b72dd5bde0c656ccf19999;hp=79c1638303142b81e1b72dd5bde0c656ccf19999;p=elogind.git shell-completion: replace printf with echo It is faster to use a bash built-in, then to invoke an external program. The problem of unit names starting with a dash is solved by prepending a space. Spaces are ignored anyway. For zsh, replace echo "$unit", which is vulnerable to dashes, with echo " $unit". ---