Skip to content
  • Zbigniew Jędrzejewski-Szmek's avatar
    shell-completion: replace printf with echo · 79c16383
    Zbigniew Jędrzejewski-Szmek authored
    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".
    79c16383