Dianne Skoll
996e9ee212
Colorize test PASS/FAIL indicators iff stdout is a tty.
2025-10-07 21:43:23 -04:00
Dianne Skoll
41306bfad5
Use "sleep 0.2" on systems that support it.
2025-10-07 20:46:34 -04:00
Dianne Skoll
d084a48da7
Add test to verify that INCLUDECMD cmd connects cmd's standard input to /dev/null.
2025-10-07 20:38:21 -04:00
Dianne Skoll
e038f74b28
Document that INCLUDECMD's cmd has stdin < /dev/null
...
Make testing yet a bit more verbose.
2025-10-07 20:31:21 -04:00
Dianne Skoll
453bba5172
Pluralize.
2025-10-07 16:24:39 -04:00
Dianne Skoll
8ce56acc7a
Make tests ever so slightly more verbose.
2025-10-07 16:23:22 -04:00
Dianne Skoll
90648e4091
Refactor filename into a shell variable.
2025-10-07 15:46:27 -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
1cb2c6aa23
Simplify test script.
2025-10-01 21:16:04 -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
2f86920842
Add $WarningLevel special variable.
2025-09-25 17:55:16 -04:00
Dianne Skoll
aa090bf319
Add tests for PrintValue string truncation.
2025-09-12 11:22:51 -04:00
Dianne Skoll
d15c8f106b
Support hexadecimal integer constants in expressions; add hex() function.
2025-09-11 17:02:22 -04:00
Dianne Skoll
adb38fe82e
Fix off-by-one error.
2025-09-11 11:25:20 -04:00
Dianne Skoll
57545ddc3f
Add test for --max-expr-complexity
2025-09-11 11:20:29 -04:00
Dianne Skoll
375576fcc5
Add better support for multi-byte character set.
...
The functions mbindex, mbstrlen and mbsubstr are just like
index, strlen and substr, but they use and return 1-based
character indexes rather than 1-based byte indexes.
2025-09-10 13:25:27 -04:00
Dianne Skoll
127358db02
The official IANA name of UTC is "Universal".
2025-09-03 18:55:43 -04:00
Dianne Skoll
2f239f77a5
Default $ParseUntriggered to 0 instead of 1
2025-08-27 11:34:10 -04:00
Dianne Skoll
7c56aad791
FIx tests.
2025-08-21 11:49:16 -04:00
Dianne Skoll
fd8ecd88a8
Add --flush option; use it in tests.
...
Should help with weird systems whose C libraries have different flushing rules.
2025-08-15 22:36:20 -04:00
Dianne Skoll
7b7b861399
Disable RUN in callbacks to ordx and subst_xxx functions.
2025-08-15 20:27:51 -04:00
Dianne Skoll
6c2a4b66fd
Add tests and translations for %:
2025-08-15 15:07:32 -04:00
Dianne Skoll
cd2dc3bea3
Add test for %:
2025-08-15 14:35:31 -04:00
Dianne Skoll
de2ec1aa7b
In --json mode, redirect any RUN ... command stdout to stderr
...
We really don't want to mess up the JSON we produce on stdout!!
2025-08-14 21:47:40 -04:00
Dianne Skoll
af69f54bff
Add max_overdue to JSON.
2025-08-14 18:54:15 -04:00
Dianne Skoll
5217d9b675
Start adding TODO tests.
2025-08-13 11:53:56 -04:00
Dianne Skoll
8523218ef2
Add %? substitution sequence and translations for "are" and "were"
2025-08-12 19:08:34 -04:00
Dianne Skoll
9199ed5cf7
Make sure remind -ppp preserves scanfrom even if it's today.
2025-08-11 16:55:20 -04:00
Dianne Skoll
24ed30fee0
Add RETURN command
...
Suggestion from Hymie! on Remind mailing list.
2025-08-06 11:08:41 -04:00
Dianne Skoll
136122b1db
Fix a couple of minor problems found by "remind -du"
2025-05-25 14:54:49 -04:00
Dianne Skoll
51a65841cd
Warn if a variable is UNSET without having been used (if -du is in effect)
2025-05-24 23:13:39 -04:00
Dianne Skoll
5035deaff1
Tweak warning wording; add tests.
2025-05-24 23:09:57 -04:00
Dianne Skoll
c5bc459dd9
Add "-du" debugging flag to print a list of variables that were set but never used.
2025-05-23 16:55:10 -04:00
Dianne Skoll
5d822e294d
Make "Hush Mode" suppress all purge-mode diagnostics.
...
We only get the "#!P: Expired" lines in that case.
2025-05-21 11:15:56 -04:00
Dianne Skoll
098cf4707a
Do not use obsolete "tail +2" syntax. Instead use "tail -n+2"
...
Fix courtesy of Dick Marinus.
2025-05-17 10:59:28 -04:00
Dianne Skoll
ab69fee895
No need for timetis64bit guards (I hope...)
2025-05-08 14:33:33 -04:00
Dianne Skoll
4590e746c5
Force year-folding on 32-bit time_t machines.
2025-05-08 12:10:15 -04:00
Dianne Skoll
ea3126645c
Prevent eclipse files from barfing on systems with 32-bit time_t
2025-05-06 12:43:38 -04:00
Dianne Skoll
8590cf6207
Add more verbiage
2025-05-06 12:33:21 -04:00
Dianne Skoll
c85a8a7614
Make tests pass on systems with 32-bit time_t.
2025-05-06 12:32:03 -04:00
Dianne Skoll
59f978a9db
Add $TimetIs64bit system variable.
2025-05-06 12:14:18 -04:00
Dianne Skoll
44b920e080
Make "remind -s" respect $DefaultColor
...
https://dianne.skoll.ca/pipermail/remind-fans/2025/005051.html
2025-04-23 10:15:20 -04:00
Dianne Skoll
2c8fa39af0
Add tests for astronomical functions.
2025-03-20 11:38:18 -04:00
Dianne Skoll
471ecff267
Report both starting and ending lines for commands spanning multiple lines because of \-line continuation.
...
This affects error and warning messages primarily. The JSON
interchange format has an additional lineno_start entry for
reminders that span multiple lines. (Historically, lineno
was the *last* line of the reminder statement and I kept
that for compatibility.)
2025-02-16 20:30:16 -05:00
Dianne Skoll
5acbb907b4
Issue warning if a substitution sequence related to time is used without an AT clause.
Remind unit tests / tests (push) Successful in 31s
2025-02-10 09:23:43 -05:00
Dianne Skoll
3b43222585
Add the triginfo("header") function and corresponding %<...> substitution sequence.
2025-02-01 14:39:06 -05:00
Dianne Skoll
51b831fb6a
Check for proper escaping in JSON and TRANSLATE DUMP.
2025-02-01 11:15:25 -05:00
Dianne Skoll
0ebaaa4097
Add optional add_quote argument to escape()
2025-02-01 10:58:55 -05:00
Dianne Skoll
930bab0fde
Add more tests.
2025-02-01 10:45:34 -05:00
Dianne Skoll
694c4099d1
Add \xAA sequence for parsing quoted strings; add the escape() built-in function; update docs.
2025-02-01 10:36:38 -05:00