<<< Date Index >>>     <<< Thread Index >>>

Re: First "fcc-hook" is not more working...



Hello Rocco,

The problem is definitivly NOT IN MUTT since I get exact the same error
now in one of my scripts usin "egrep"

Am 2007-11-30 15:22:54, schrieb Rocco Rutte:
> * Michelle Konzack wrote:
> >----8<------------------------------------------------------------------
> >[michelle.konzack@xxxxxxxxxxxxxxxxx:~/] export LANG=C    
> >[michelle.konzack@xxxxxxxxxxxxxxxxx:~/] export LC_ALL=C
> >[michelle.konzack@xxxxxxxxxxxxxxxxx:~/] mutt
> >Error in /home/michelle.konzack/.mutt/hook-fcc, line 8: Unmatched ( or \(
> >Error in /home/michelle.konzack/.mutt/muttrc, line 18: source: errors in 
> >/home/michelle.konzack/.mutt/hook-fcc
> >source: errors in /home/michelle.konzack/.mutt/muttrc
> >----8<------------------------------------------------------------------
<snip>
> Oh, please not again. Somebody on IRC had exactly the same problem where 
> a 600 byte alternates command wouldn't work and reported a regex error.  
> In one mutt version it worked, with a different on a different system it 
> didn't for no reason. As in your case, I bet the error is the regex 
> engine and not mutt itself.
> 
> For the alternates issue, the workaround was to split the pattern at |.
> 
> Can you please give system details and see if multiple fcc-hooks work 
> (including 'mutt -v | grep REGEX' and the libc version)? Do you have 
> other regexes with brackets/OR logic?
> 
> I really have no clue what's wrong, thouhg :(
------------------------- END OF REPLIED MESSAGE -------------------------

Here the code sniplet:

----8<------------------------------------------------------------------
    elif `echo "${LINE}" |egrep '^(---|+++) ' >/dev/null` ; then
      echo "${ESC}35;40m${LINE}"
----8<------------------------------------------------------------------

and if I call my script with:

----[ command 'tdfileview --color --inputfile=tdfileview.0201.diff' ]---

Viewing:  /home/michelle.konzack//bin/tdfileview.0201.diff
Filetype: RCS/CVS diff output text
Filter:   201, diff or patch
==============================================================================
Index: debian-packages
grep: »)« oder »\)« ohne öffnende Klammer
===================================================================
grep: »)« oder »\)« ohne öffnende Klammer
--- debian-packages (revision 2398)
grep: »)« oder »\)« ohne öffnende Klammer
------------------------------------------------------------------------

Any ideas?

grep:
  Installiert:2.5.1.ds2-5
  Mögliche Pakete:2.5.1.ds2-5
  Versions-Tabelle:
 *** 2.5.1.ds2-5 0
        500 cdrom://Etch DVD 1 etch/main Packages
        100 /var/lib/dpkg/status

Thanks, Greetings and nice Day
    Michelle Konzack
    Tamay Dogan Network
    Open Hardware Developer
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature