Commit Graph

1404 Commits

Author SHA1 Message Date
Dianne Skoll
96d40b81df Make early exit contingent upon ParseUntriggered. 2025-11-10 12:02:47 -05:00
Dianne Skoll
326604fe18 Free trigger resources if we exit early because of expired reminder. 2025-11-04 17:07:09 -05:00
Dianne Skoll
57e93553bf Exit early if a reminder has expired. 2025-11-04 17:05:02 -05:00
Dianne Skoll
8f02868486 Refactor code. 2025-11-02 14:00:59 -05:00
Dianne Skoll
12d8e8e948 Add support for turning reminders with "URL" info strings into hyperlinks if your terminal supports it.
Use the "z" flag with -c.
2025-11-02 13:29:41 -05:00
Dianne Skoll
52c615ff61 Revert warning if BANNER is used after a banner has already been issued.
https://dianne.skoll.ca/pipermail/remind-fans/2025/005268.html
2025-11-02 12:21:12 -05:00
Dianne Skoll
7d3e6b3a72 Warn if we see a BANNER command when the banner has already been issued. 2025-11-02 11:28:48 -05:00
Dianne Skoll
53dcce6a91 Use a macro instead of repeating myself. 2025-11-01 21:15:24 -04:00
Dianne Skoll
d12d327e35 Include ')' in non-illegal char set. 2025-11-01 21:09:19 -04:00
Dianne Skoll
a2f760fb91 Better diagnostics for errors like: SET a 3 * * 4 2025-11-01 21:07:39 -04:00
Dianne Skoll
878a5d9bed Avoid spurious parse error if there's trailing space after the end of an expression. 2025-11-01 19:58:46 -04:00
Dianne Skoll
bf74ad1eb7 Reword error message. 2025-11-01 13:07:38 -04:00
Dianne Skoll
085b781114 Prevent segfault. 2025-10-31 12:51:05 -04:00
Dianne Skoll
7a319466cf Fix error output 2025-10-30 18:00:34 -04:00
Dianne Skoll
05ead8c40d More helpful errors when parsing expressions. 2025-10-30 14:30:29 -04:00
Dianne Skoll
36f4bb852b Avoid warnings on FreeBSD. 2025-10-29 13:46:41 -04:00
Dianne Skoll
f5dbba3864 Use our StrDup function. 2025-10-18 14:23:14 -04:00
Dianne Skoll
ff9d27a6ca Fix a few potential memory leaks. 2025-10-18 11:26:40 -04:00
Dianne Skoll
e82767f821 Guard definition of __EXTENSIONS__ so it happens only on Sun boxes. 2025-10-18 10:54:10 -04:00
Dianne Skoll
941cb0f63e Make it compile on OpenIndiana. 2025-10-14 13:57:39 -04:00
Dianne Skoll
15960f7e4a Try to get it to compile on openindiana 2025-10-14 13:42:22 -04:00
Dianne Skoll
a22b0b8daf Silence cppcheck warning. 2025-10-12 22:49:16 -04:00
Dianne Skoll
cab749b651 Look for sys/termios.h - needed for TIOCGWINSZ on some systtems. 2025-10-12 20:43:41 -04:00
Dianne Skoll
2723875a18 Only check the trigger portion of a REM for expressions in purge mode, not body. 2025-10-12 13:38:47 -04:00
Dianne Skoll
5534bf8272 Don't set nonconst_expr on a reminder if the non-constant expression is only in the *BODY* of the reminder.
Only set it if it affects the trigger specification.
2025-10-12 11:22:13 -04:00
Dianne Skoll
f726b09fc6 Suppress some spurious debugging output when we use "-dt" with a TZ reminder. 2025-10-11 11:56:48 -04:00
Dianne Skoll
f07a6d1bed Add a warning_level guard. 2025-10-10 16:41:43 -04:00
Dianne Skoll
834741f91b Don't warn if timezone "" is specified. 2025-10-09 12:45:01 -04:00
Dianne Skoll
19b33bb9bc Make "tzconvert" warn about bad time zones. 2025-10-09 12:40:42 -04:00
Dianne Skoll
a19b79951e Fix more TZ bugs; warn if TZ name looks suspicious. 2025-10-08 23:07:37 -04:00
Dianne Skoll
21f5462657 On systems that have /usr/share/zoneinfo (Linux and FreeBSD, for example) attempt to validate TZ time zone names. 2025-10-08 22:05:49 -04:00
Dianne Skoll
dfe1834c75 Nicer readline prompts. 2025-10-07 23:38:12 -04:00
Dianne Skoll
8748856f5a Don't set up inotify descriptor if we are not in server mode. 2025-10-07 20:52:22 -04:00
Dianne Skoll
18c3e0fe2e Handle failure path better. 2025-10-07 20:33:46 -04:00
Dianne Skoll
303e42f344 Arrange it so an INCLUDECMD cmd redirect's "cmd's" standard input to /dev/null 2025-10-07 20:27:07 -04:00
Dianne Skoll
6c67dfeb72 Use a cppcheck-build-dir 2025-10-07 15:44:37 -04:00
Dianne Skoll
690d5bd429 Fix cppcheck warnings. 2025-10-07 15:36:26 -04:00
Dianne Skoll
074feffaab Make sure we redirect stdin from /dev/null for RUN and shell() 2025-10-07 14:34:19 -04:00
Dianne Skoll
44dd57e6e3 When RUNning a command (REM RUN ...) arrange for command's stdin to be connected to /dev/null 2025-10-07 14:12:39 -04:00
Dianne Skoll
96c15ef42a Update docs; close stdin when we go to queuing mode. 2025-10-07 14:00:11 -04:00
Dianne Skoll
561245a5e8 Fix timezone bug reported by Jin Chen. 2025-10-08 04:09:33 +11:00
Dianne Skoll
0ecca26da8 Define a useful macro. 2025-10-07 09:01:14 -04:00
Dianne Skoll
3083142753 Don't set up an inotify descriptor in non-daemon mode. 2025-09-30 16:41:16 -04:00
Dianne Skoll
26ec92675c Give more specific ADDOMIT advice. 2025-09-29 14:22:10 -04:00
Dianne Skoll
01461929d7 Fix line-counting logic that made entirely-empty weeks one row too short. 2025-09-29 09:48:15 -04:00
Dianne Skoll
b3a2c0e7c7 Don't add a spurious blank line if there are no entries at all for a given calendar row. 2025-09-28 22:52:44 -04:00
Dianne Skoll
9f139b0d02 More readable code. 2025-09-27 10:03:59 -04:00
Dianne Skoll
5610590fa8 Be pickier about $WarningLevel. Make sure it matches the Perl regex: ^\d\d\.\d\d\.\d\d$ 2025-09-27 09:38:00 -04:00
Dianne Skoll
5092d5bc16 More warning_level annotations. 2025-09-25 18:08:29 -04:00
Dianne Skoll
2f86920842 Add $WarningLevel special variable. 2025-09-25 17:55:16 -04:00