In your mail:
> >
> > + I PipeRead `ps x|grep Fvwm|sed -e
> > "s/\\(.*\\)\\/\\(Fvwm[a-zA-Z]\\+\\).*/AddToMenu ModuleList \\2 KillModule
> > \\2/"|sort|uniq`
>
> If your sed allows, use a delimiter other than '/' so that you do
> not have to escape it to reduce the clutter...
>
> echo 'damn/it' | sed -e 's!damn/!bloody !'
>
>
> In other words, use a delimiter that does not occur in search
> pattern or replacement to minimize number of things to focus on.
>
> I have a feeling, but have not actually tried, that you may be
> overescaping things in sed command.
>
>
> - Parv
the fucntion looks like:
Now DestroyFunc funcModuleList
AddToFunc funcModuleList
+ I PipeRead 'ps x|grep Fvwm|sed -e "s!\\(.*\\)/\\(Fvwm[a-zA-Z]\\+\\).*!AddToMenu
ModuleList \\2 KillModule \\2!"|sort -u'
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun May 16 2004 - 22:28:42 BST