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 > @@ .
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