On 24 Aug 2001 11:41:22 +0100, Tim Phipps wrote:
> 
> Description:
>       fvwm-menu-directory produces syntax errors from fvwm when it tries
>       to create a menu with a file that has two %'s in its name.
>       It also doesn't handle & * " very well. @ and ^ in directory names
>       needs fixing too but not in file names.
> 
> Repeat-By:
> 
> touch "1&amp" "1%perc" "1*star"
> touch 'double"quote'
> touch "2%perc%" "2&amp&" "2*star*"
> mkdir "1^circ" "[EMAIL PROTECTED]" "2^circ^" "[EMAIL PROTECTED]@"
> touch "1^circ/file" "[EMAIL PROTECTED]/file" "2^circ^/file" "[EMAIL 
> PROTECTED]@/file"
> 
> Fix:
> 
> Replace & with && etc. ^ is difficult with submenus as some shells
> interpret it as a |. It should be \ escaped by the time fvwm Exec's
> fvwm-menu-directory.

Which unix shell interprets ^ in quotes specially?

I fixed the problems above and some more, except for ^ and @ in Popup
(they work in Menu with --reuse). I think it should be fixed in fvwm.

Currently when MissingSubmenuFunction is called the argument is not passed
correctly. Double ^^ and @@ are not converted to single ones as should be.
Also if Popup "my  name" contains spaces, 2 parameters are passed. The
whole name may be read in $*, but $* is not good for fvwm-menu-directory
(unlike $0 .. $9 if you use $* you should know how the function is called),
the best solution is to implement what the man page says:

              I.e. the name is passed  to  the  function  as  its
              first argument and can be referred to with "$0".

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to