[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [PATCH] mail: Don't use the =~ construct
From: |
Jean Delvare |
Subject: |
[Quilt-dev] [PATCH] mail: Don't use the =~ construct |
Date: |
Wed, 10 Jun 2009 15:03:13 +0200 |
User-agent: |
KMail/1.9.6 (enterprise 20070904.708012) |
Older versions of bash do not support the =~ construct, so stop
using it.
---
I don't use quilt mail myself, and I am not sure if this particular
feature is tested in the test suite, so someone more familiar with
quilt mail than I am may want to take a look at this.
quilt/mail.in | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
--- quilt-0.48.orig/quilt/mail.in 2009-01-31 03:28:06.000000000 +0100
+++ quilt-0.48/quilt/mail.in 2009-06-10 14:24:08.000000000 +0200
@@ -101,10 +101,14 @@ references_header() {
then
in_reply_to=$(formail -x In-Reply-To: < "$message")
in_reply_to=${in_reply_to# }
- if [ -n "$in_reply_to" ] &&
- ! [[ "$in_reply_to" =~ "@.*@" ]]
+ if [ -n "$in_reply_to" ]
then
- references=$in_reply_to
+ case "$in_reply_to" in
+ address@hidden@*)
+ ;;
+ *) references=$in_reply_to
+ ;;
+ esac
fi
fi
if [ -z "$references" ]
--
Jean Delvare
Suse L3
- [Quilt-dev] [PATCH] mail: Don't use the =~ construct,
Jean Delvare <=