FVWM: Re: [HELP]PipeRead Strange Error Message

From: <liushidai_at_mails.tsinghua.edu.cn>
Date: Mon, 17 May 2004 11:21:18 +0800

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

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST