On Mon, Oct 30, 2006 at 06:50:58PM +0100, Michelle Konzack wrote:
> The construct in the /etc/menu-methods/tdmenu is very heavy and too
> complex since I have fallback constructs using ifelsefile() and ...

You can use forall(shell("echo $LANGUAGE"),...) to loop over all
languages.

> Becaue functions can not splited over several lines (returns heavy
> errors) and they are now over 800 characters long I put the function
> into a shell script and execute it with:

You can split functions across several lines! Either use 
compat="menu-2" to switch to menu-2 mode (where functions and commands
must end by a ';') or you can put a '\' at the end of the line like
shell does.

> Oh yes, I have already tried 
> 
> --------------------------------------------------------------------
> startmenu=   "DestroyMenu \"" replacewith($section," ","_") "\"\n" \
>              "AddToMenu   \"" replacewith($section," ","_") \
> shell("tdmenu --getsidebar " (tolower(replacewith($section, "/ ", "__"))) ) \
> --------------------------------------------------------------------
> 
> but it does not work (in other functions I can use such construct)

That should work. Did you notice there is an extraneous backslash at the
end of the line ?

Cheers,
-- 
Bill. <[EMAIL PROTECTED]>

Imagine a large blue swirl here. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to