On Wed, Dec 05, 2007, Christoph Schug wrote:

> On Wed, Dec 05, 2007, Torsten Homeyer wrote:
>
> >   Index: openpkg-src/fetchmail/rc.fetchmail
> >   
> > ============================================================================
> >   $ cvs diff -u -r1.6 -r1.7 rc.fetchmail
> >   --- openpkg-src/fetchmail/rc.fetchmail    5 Dec 2007 09:29:54 -0000       
> > 1.6
> >   +++ openpkg-src/fetchmail/rc.fetchmail    5 Dec 2007 13:16:21 -0000       
> > 1.7
> >   @@ -33,7 +33,7 @@
> >                fi
> >                if [ -s $fetchmail_users ]; then
> >                    sed -e '/^[[:space:]]*#.*/d' \
> >   -                    -e '/^$/d' <$fetchmail_users |\
> >   +                    -e '/^[[:space:]]*$/d' <$fetchmail_users |\
> >                    while read user comment; do
> >                        fetchmailrc=`eval echo ~$user`/.fetchmailrc
> >                        if [ -s $fetchmailrc ]; then
> >   @@ .
>
> Do you think this is portable enough? I'm not sure whether all
> implementations of sed correctly implement POSIX character classes.

"fetchmail" at least already requires "sed" (GNU sed), so maybe this is
already sufficient for this (I've not checked myself)?

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
OpenPKG                                             http://openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to