genmenu=ifeqelse(parent($title),"",parent($section),parent(parent($section))) "/" \ replacewith($title,"/","_") ifelse($command, "", "/")
that works correctly when title contains at most on '/'. Thanks to Malcolm Parsons for this tip.
sh: exec: eval: not foundbecause eval is a builtin. However some of them do not evaluated command in a shell, which is wrong.