mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Compare commits
4 Commits
06.01.00-B
...
06.01.00
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c9087aa79 | ||
|
|
928f65ae47 | ||
|
|
ed7b4f5ecc | ||
|
|
9aad9401ea |
@@ -1,11 +1,17 @@
|
|||||||
CHANGES TO REMIND
|
CHANGES TO REMIND
|
||||||
|
|
||||||
* VERSION 6.1 Patch 0 - 2025-??-??
|
* VERSION 6.1 Patch 0 - 2025-09-08
|
||||||
|
|
||||||
- MAJOR NEW FEATURE: remind: The TZ keyword lets you specify a time
|
- MAJOR NEW FEATURE: remind: The TZ keyword lets you specify a time
|
||||||
zone for a REM command. All trigger calculations are performed in
|
zone for a REM command. All trigger calculations are performed in
|
||||||
the named time zone.
|
the named time zone.
|
||||||
|
|
||||||
|
- DOCUMENTATION: Update README.md to document prerequisites for readline
|
||||||
|
support.
|
||||||
|
|
||||||
|
- DOCUMENTATION: remind.1: Document system variables such as $T that can
|
||||||
|
have multiple types.
|
||||||
|
|
||||||
- BUG FIX: remind: If Remind was run interactively ("remind -c -" with
|
- BUG FIX: remind: If Remind was run interactively ("remind -c -" with
|
||||||
readline support enabled) it would not properly cache the input
|
readline support enabled) it would not properly cache the input
|
||||||
file, but would keep asking for interactive input. This has been
|
file, but would keep asking for interactive input. This has been
|
||||||
|
|||||||
@@ -5,15 +5,20 @@
|
|||||||
# trans people are under attack in the USA and many
|
# trans people are under attack in the USA and many
|
||||||
# other places. So this is a little show of support
|
# other places. So this is a little show of support
|
||||||
# and resistance for trans people.
|
# and resistance for trans people.
|
||||||
BANNER %
|
|
||||||
SET $AddBlankLines 0
|
SET $AddBlankLines 0
|
||||||
REM SPECIAL COLOR 91 206 250 ██████████████████████████████████
|
BANNER %
|
||||||
REM SPECIAL COLOR 91 206 250 ██████████████████████████████████
|
set c max(columns()-1, 10)
|
||||||
REM SPECIAL COLOR 245 169 184 ██████████████████████████████████
|
set r max(rows(), 5)
|
||||||
REM SPECIAL COLOR 245 169 184 ██████████████████████████████████
|
|
||||||
REM SPECIAL COLOR 255 255 255 ██████████████████████████████████
|
set bar "█" * c
|
||||||
REM SPECIAL COLOR 255 255 255 ██████████████████████████████████
|
set dups r/5
|
||||||
REM SPECIAL COLOR 245 169 184 ██████████████████████████████████
|
set bars (bar + "%_") * dups
|
||||||
REM SPECIAL COLOR 245 169 184 ██████████████████████████████████
|
|
||||||
REM SPECIAL COLOR 91 206 250 ██████████████████████████████████
|
set bars substr(bars, 0, strlen(bars)-2)
|
||||||
REM SPECIAL COLOR 91 206 250 ██████████████████████████████████
|
|
||||||
|
REM SPECIAL COLOR 91 206 250 [bars]
|
||||||
|
REM SPECIAL COLOR 245 169 184 [bars]
|
||||||
|
REM SPECIAL COLOR 255 255 255 [bars]
|
||||||
|
REM SPECIAL COLOR 245 169 184 [bars]
|
||||||
|
REM SPECIAL COLOR 91 206 250 [bars]
|
||||||
|
|
||||||
|
|||||||
@@ -2340,7 +2340,7 @@ symbolic links to files.
|
|||||||
.PP
|
.PP
|
||||||
The \fBSYSINCLUDE\fR command is similar to \fBDO\fR, but it looks for
|
The \fBSYSINCLUDE\fR command is similar to \fBDO\fR, but it looks for
|
||||||
relative pathnames under the system directory containing standard reminder
|
relative pathnames under the system directory containing standard reminder
|
||||||
scripts. For this version of \fBRemind\fR, the system directory is
|
scripts. For this installation of \fBRemind\fR, the system directory is
|
||||||
"@prefix@/share/remind".
|
"@prefix@/share/remind".
|
||||||
.PP
|
.PP
|
||||||
.SH THE RETURN COMMAND
|
.SH THE RETURN COMMAND
|
||||||
@@ -4900,12 +4900,10 @@ Returns a string suitable for use in a \fBREM\fR command or a
|
|||||||
dates in advance. Note that in earlier versions of \fBRemind\fR,
|
dates in advance. Note that in earlier versions of \fBRemind\fR,
|
||||||
\fBtrigger\fR was required to convert a date into something the
|
\fBtrigger\fR was required to convert a date into something the
|
||||||
\fBREM\fR command could consume. However, in this version of
|
\fBREM\fR command could consume. However, in this version of
|
||||||
\fBRemind\fR, you can omit it. Note that \fBtrigger()\fR \fIalways\fR
|
\fBRemind\fR, you can omit it. Normally, the \fIdate\fR and
|
||||||
returns its result in English, even for non-English versions of
|
\fItime\fR are the local date and time; however, if \fIutcflag\fR is
|
||||||
\fBRemind\fR. Normally, the \fIdate\fR and \fItime\fR are the local
|
non-zero, the \fIdate\fR and \fItime\fR are interpreted as UTC times,
|
||||||
date and time; however, if \fIutcflag\fR is non-zero, the \fIdate\fR
|
and are converted to local time. Examples:
|
||||||
and \fItime\fR are interpreted as UTC times, and are converted to
|
|
||||||
local time. Examples:
|
|
||||||
.RS
|
.RS
|
||||||
.PP
|
.PP
|
||||||
trigger('1993/04/01')
|
trigger('1993/04/01')
|
||||||
|
|||||||
@@ -135,13 +135,30 @@ REM AT 13:33 TZ "" TZ America/Los_Angeles MSG Whatsup? %*l %3.
|
|||||||
REM TZ Universal MSG Borked
|
REM TZ Universal MSG Borked
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
TZ=America/Toronto $REMIND -dx - <<'EOF' >> $OUT 2>&1
|
TZ=America/Toronto $REMIND -dx - 2025-09-01@01:00 <<'EOF' >> $OUT 2>&1
|
||||||
SET a tzconvert('2025-09-01@14:44', "", "Europe/Berlin")
|
SET a tzconvert('2025-09-01@14:44', "", "Europe/Berlin")
|
||||||
SET a tzconvert('2025-09-01@14:44', "America/Toronto", "Europe/Berlin")
|
SET a tzconvert('2025-09-01@14:44', "America/Toronto", "Europe/Berlin")
|
||||||
SET a tzconvert('2025-09-01@14:44', "Europe/Berlin", "")
|
SET a tzconvert('2025-09-01@14:44', "Europe/Berlin", "")
|
||||||
SET a tzconvert('2025-09-01@14:44', "Europe/Berlin")
|
SET a tzconvert('2025-09-01@14:44', "Europe/Berlin")
|
||||||
SET a tzconvert('2025-09-01@14:44', "", "")
|
SET a tzconvert('2025-09-01@14:44', "", "")
|
||||||
SET a tzconvert('2025-09-01@14:44', "")
|
SET a tzconvert('2025-09-01@14:44', "")
|
||||||
|
|
||||||
|
SET b evaltrig("Wednesday at 23:00 TZ Australia/Sydney")
|
||||||
|
SET b evaltrig("Wednesday at 23:00 TZ Europe/Amsterdam")
|
||||||
|
SET b evaltrig("Wednesday at 23:00 TZ America/Los_Angeles")
|
||||||
|
set b evaltrig("Wednesday TZ Europe/Amsterdam")
|
||||||
|
|
||||||
|
debug +t
|
||||||
|
set c trig("Mon at 00:00 TZ Australia/Sydney",\
|
||||||
|
"Tue at 00:00 TZ America/Toronto",\
|
||||||
|
"Wed at 00:00 TZ Europe/Amsterdam",\
|
||||||
|
"Thu at 00:00 TZ America/Los_Angeles",\
|
||||||
|
"Fri at 00:00 TZ Australia/Sydney",\
|
||||||
|
"Sat at 00:00 TZ Australia/Sydney",\
|
||||||
|
"Sun at 00:00 TZ Australia/Sydney", \
|
||||||
|
"at 14:42")
|
||||||
|
debug -t
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cmp -s $OUT $CMP
|
cmp -s $OUT $CMP
|
||||||
|
|||||||
29
tests/tz.cmp
29
tests/tz.cmp
@@ -49,3 +49,32 @@ tzconvert(2025-09-01@14:44, "Europe/Berlin", "") => 2025-09-01@08:44
|
|||||||
tzconvert(2025-09-01@14:44, "Europe/Berlin") => 2025-09-01@08:44
|
tzconvert(2025-09-01@14:44, "Europe/Berlin") => 2025-09-01@08:44
|
||||||
tzconvert(2025-09-01@14:44, "", "") => 2025-09-01@14:44
|
tzconvert(2025-09-01@14:44, "", "") => 2025-09-01@14:44
|
||||||
tzconvert(2025-09-01@14:44, "") => 2025-09-01@14:44
|
tzconvert(2025-09-01@14:44, "") => 2025-09-01@14:44
|
||||||
|
evaltrig("Wednesday at 23:00 TZ Australia/Sydney") => 2025-09-03@09:00
|
||||||
|
evaltrig("Wednesday at 23:00 TZ Europe/Amsterdam") => 2025-09-03@17:00
|
||||||
|
evaltrig("Wednesday at 23:00 TZ America/Los_Angele"...) => 2025-09-04@02:00
|
||||||
|
evaltrig("Wednesday TZ Europe/Amsterdam") => TZ specified for non-timed reminder
|
||||||
|
-stdin-(11): evaltrig(): TZ specified for non-timed reminder
|
||||||
|
trig("Mon at 00:00 TZ Australia/Sydney", "Tue at 00:00 TZ America/Toronto", "Wed at 00:00 TZ Europe/Amsterdam", "Thu at 00:00 TZ America/Los_Angeles", "Fri at 00:00 TZ Australia/Sydney", "Sat at 00:00 TZ Australia/Sydney", "Sun at 00:00 TZ Australia/Sydney", "at 14:42") => -stdin-(14:21): Trig(tz_adj Australia/Sydney) = Sunday, 31 August, 2025 AT 10:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Australia/Sydney) = Sunday, 7 September, 2025 AT 10:00
|
||||||
|
-stdin-(14:21): Trig = Monday, 8 September, 2025 AT 00:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Australia/Sydney) = Sunday, 7 September, 2025 AT 10:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj America/Toronto) = Tuesday, 2 September, 2025 AT 00:00
|
||||||
|
-stdin-(14:21): Trig = Tuesday, 2 September, 2025 AT 00:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj America/Toronto) = Tuesday, 2 September, 2025 AT 00:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Europe/Amsterdam) = Tuesday, 2 September, 2025 AT 18:00
|
||||||
|
-stdin-(14:21): Trig = Wednesday, 3 September, 2025 AT 00:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Europe/Amsterdam) = Tuesday, 2 September, 2025 AT 18:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj America/Los_Angeles) = Thursday, 4 September, 2025 AT 03:00
|
||||||
|
-stdin-(14:21): Trig = Thursday, 4 September, 2025 AT 00:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj America/Los_Angeles) = Thursday, 4 September, 2025 AT 03:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Australia/Sydney) = Thursday, 4 September, 2025 AT 10:00
|
||||||
|
-stdin-(14:21): Trig = Friday, 5 September, 2025 AT 00:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Australia/Sydney) = Thursday, 4 September, 2025 AT 10:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Australia/Sydney) = Friday, 5 September, 2025 AT 10:00
|
||||||
|
-stdin-(14:21): Trig = Saturday, 6 September, 2025 AT 00:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Australia/Sydney) = Friday, 5 September, 2025 AT 10:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Australia/Sydney) = Saturday, 6 September, 2025 AT 10:00
|
||||||
|
-stdin-(14:21): Trig = Sunday, 7 September, 2025 AT 00:00
|
||||||
|
-stdin-(14:21): Trig(tz_adj Australia/Sydney) = Saturday, 6 September, 2025 AT 10:00
|
||||||
|
-stdin-(14:21): Trig = Monday, 1 September, 2025 AT 14:42
|
||||||
|
2025-09-01
|
||||||
|
|||||||
Reference in New Issue
Block a user