I have a problem where commands preceded by "sudo" are not always auto-completed. This happens with executables that don't have user execute permission. For example, net-analyzer/tcptraceroute installs this binary:

 -rws--x--- 1 root wheel 35536 Mar  8 23:32 /usr/sbin/tcptraceroute

Typing:

  sudo tcptr[TAB]

does not auto-complete. Changing the permissions:

  chmod a+x /usr/sbin/tcptraceroute

makes it work.

Is there a way to make bash-completion work without having to modify the permissions?


Reply via email to