[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: /etc/init.d in the default $PATH ?
- From: "Konstantin Ryabitsev" <icon fedoraproject org>
- To: "Development discussions related to Fedora Core" <fedora-devel-list redhat com>
- Subject: Re: /etc/init.d in the default $PATH ?
- Date: Mon, 29 Jan 2007 15:32:56 -0500
On 1/29/07, Dmitry Butskoy <buc odusz so-cdu ru> 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]