* Bill Allombert <[EMAIL PROTECTED]> [2006-06-18 17:06]:
> Package: fvwm-crystal
> Version: 3.0.3-3
> Severity: normal
> 
> Hello Michael,
> 
> The menu method do not quote correctly the command:
> When processing the menu entry, 
> 
> ?package(local.test):command="eval `echo /usr/bin/bc`" needs="text" \
>              section="Apps/Test" title="test backquote"
> 
> we get:
> sh: -c: line 0: unexpected EOF while looking for matching ``'
> sh: -c: line 1: syntax error: unexpected end of file
> 
> Now, could you explian me what is the purpse of the CommandWOArgs ?
> 
> Why not use title() instead ?
The menu system of fvwm-crystal only displays menu entries when the
executable for those entries can be found. It furthermore uses the
name of the executable to find the appropriate icon. Since the title
usually differs from the name of the executable I cannot use it here.
The purpose of CommandWOArgs is to strip the arguments and return just
the name of the command.
The problem with the above is solved by applying the stripdir after
the echo $0 and not to the command itself (which produces the bc` here).

Now this is not going to work for shell builtin commands like eval
anyway, as there is no executable for fvwm-crystal to discover the
entry will not be displayed (I know it should work). Now I don't really
know how to deal with that problem, as I would have to detect shell
builtin and use sh as the commandname instead..

-Mike


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

Reply via email to