start-stop daemon

Michael A. Peters mpeters at mac.com
Wed Apr 23 09:54:44 PDT 2003


On Wed, 2003-04-23 at 03:46, Jeroen Coumans wrote:
> Try it with a proper function:
> which () {
> 	unalias -a
> 	unset -- "$@" &> /dev/null
> 	enable -n -- "$@" &> /dev/null
> 	type -p "$@"
> }
> 
> Assuming there's a #!/bin/bash on top. Else, use that as a seperate 
> shell script.
> 
#!/bin/bash
# test.sh

which () {
unalias -a
unset -- "$@" & > /dev/null
enable -n -- "$@" & > /dev/null
type -p "$@"
}

which sshd
#EOF


When I try that I get:

test.sh: line 7: enable: sshd: not a shell builtin

what am I missing?

-- 
Michael A. Peters <mpeters at mac.com>

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list