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

Re: Keep Forgetting Attachments!



so spake The Doctor What [2004.06.16 @ 17:03]:
> * Bennett Todd (bet@xxxxxxxxx) [040616 15:54]:
> > Darn it, I bungled the regexp. Here's mutt-editor as I use it now:
> > 
> >     #!/bin/sh
> >     ${VISUAL:-${EDITOR:-vi}} $1
> >     egrep 'attach(ment|ed)' $1 >/dev/null || exit
> >     echo -n 'Do you need to attach a file? '
> >     read ans
> 
> wouldn't  this be better:
> egrep 'attach(|ment|ed)'

functionally, maybe.

i think this would be better style though :

  egrep '\<attach(ment|ed)?\>'

:)

"dude, his frickin' arm wasn't even attached any more..."

Do you need to attach a file?

no, an arm...
-- 
 *------------------------*
//  ste\/e || 0x44288D05 //
*------------------------*

Attachment: pgpcDQaDy5W4w.pgp
Description: PGP signature