Re: [CVS] OpenPKG: openpkg-src/fetchmail/ rc.fetchmail
Christoph Schug wrote: > Do you think this is portable enough? I'm not sure whether all > implementations of sed correctly implement POSIX character classes. Hi Christoph, I have to admit that I just copied Ralph's solution, but I'm happy with his answer ;-) -tho -- Torsten Homeyer [EMAIL PROTECTED] http://www.homeyert.net "No I don't want to comment. I think you guys are confusing everything quite nicely all by yourselves." M. Vaughan in the Triumph mailinglist. __ OpenPKG http://openpkg.org Developer Communication List openpkg-dev@openpkg.org
Re: [CVS] OpenPKG: openpkg-src/fetchmail/ rc.fetchmail
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.fetchmail5 Dec 2007 09:29:54 - > > 1.6 > > +++ openpkg-src/fetchmail/rc.fetchmail5 Dec 2007 13:16:21 - > > 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
Re: [CVS] OpenPKG: openpkg-src/fetchmail/ rc.fetchmail
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 - > 1.6 > +++ openpkg-src/fetchmail/rc.fetchmail 5 Dec 2007 13:16:21 - > 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 > @@ . Hello Torsten! Do you think this is portable enough? I'm not sure whether all implementations of sed correctly implement POSIX character classes. -cs __ OpenPKG http://openpkg.org Developer Communication List openpkg-dev@openpkg.org