|
@@ -333,7 +333,7 @@ for cmd in $cmds; do
|
|
|
#fi
|
|
#fi
|
|
|
|
|
|
|
|
# check whether command exists in script at all
|
|
# check whether command exists in script at all
|
|
|
- cmdline=`grep "^%$cmd[^a-zA-Z0-9]" $rcdir/rc.$s_name`
|
|
|
|
|
|
|
+ cmdline=`grep "^%$cmd" $rcdir/rc.$s_name | sed -e "s;^%$cmd[^ ].*;;"`
|
|
|
if [ ".$cmdline" != . ]; then
|
|
if [ ".$cmdline" != . ]; then
|
|
|
# parse local command options
|
|
# parse local command options
|
|
|
cmdopts=`echo "$cmdline" | sed -e "s;^%$cmd *;;"`
|
|
cmdopts=`echo "$cmdline" | sed -e "s;^%$cmd *;;"`
|