From 754873a41d32f7acdd1ecd00d017239ff7ae0cf5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 3 Mar 2009 17:25:02 +0100 Subject: Start/Stop: Re-added support for more than one argument --- etc/function | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/function b/etc/function index 9629d98..3b6e122 100644 --- a/etc/function +++ b/etc/function @@ -11,8 +11,8 @@ for funcfile in $ZDIR/functions/*(*N); unset funcfile function Start Stop Restart Reload { - typeset action - for action in $*; { - sudo /etc/init.d/$1 ${0:l} + typeset script + for script in $*; { + sudo /etc/init.d/$script ${0:l} } } -- cgit v1.2.3