Re: /etc/init.d in the default $PATH ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/29/07, Dmitry Butskoy <buc@xxxxxxxxxxxxxxx> wrote:
Try this  (you can place it as "/etc/profile.d/service.sh"):

_service_func ()
{
    COMPREPLY=( $(cd /etc/init.d; ls ${2}* ) )
}
complete -F _service_func service

From immediate personal experience, you want to make it:

COMPREPLY=( $(cd /etc/init.d; /bin/ls ${2}* 2>/dev/null ) )

Cheers,
--
Konstantin Ryabitsev
Montréal, Québec

--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux