From 38db3f07c75080aee66486fe0dee7700b00685aa Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 6 Sep 2011 07:22:30 +0200 Subject: [PATCH 1/1] remove stale code from get-ts --- .mutt/get-timestamp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.mutt/get-timestamp b/.mutt/get-timestamp index 919936a..18a7049 100755 --- a/.mutt/get-timestamp +++ b/.mutt/get-timestamp @@ -19,14 +19,13 @@ case "$timespec" in echo "E: empty timespec" >&2 exit 1 ;; - @[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]|*' '*) + @[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]) date="$timespec";; *[0-9]y) date="now + ${timespec%y} years 00:00";; *[0-9]m) date="now + ${timespec%m} months 00:00";; *[0-9]w) date="now + ${timespec%w} weeks 00:00";; *[0-9]d|*[0-9]) date="now + ${timespec%d} days 00:00";; *[0-9]h) date="now + ${timespec%h} hours";; - *' '*) date="$args";; *) date="$timespec";; esac -- 2.39.5