Dianne Skoll
b454cf5b20
Refactor set_cloexec to make it more convenient to call.
2024-03-31 09:49:32 -04:00
Dianne Skoll
26977a4ac0
Fix a bunch of cppcheck complaints and also update the cppcheck Makefile target.
2024-03-11 12:10:03 -04:00
Dianne Skoll
0f782f7697
Set CLOEXEC flag on files we open.
...
When running programs in server mode, connect stdin and stdout to /dev/null
2024-02-29 09:22:15 -05:00
Dianne Skoll
72d10178bf
Mass-update copyright year to 2024.
2023-12-31 12:05:03 -05:00
Dianne Skoll
2f196e3c9f
Update copyright year. :)
2022-12-30 13:43:28 -05:00
Dianne Skoll
0cea410529
Add a bunch of: "SPDX-License-Identifier: GPL-2.0-only" comments.
2022-12-26 14:24:33 -05:00
Dianne Skoll
387125d983
Start fixing terminology: Julian becomes DSE
...
Remind's so-called "Julian" date is not a true Julian date.
It's really the number of days since the Remind Epoch, so rename
to DSE (Days Since Epoch)
2022-12-21 13:14:00 -05:00
Dianne Skoll
aa5f9297b2
Add tests for handling world-writable dirs and files.
2022-12-20 10:38:28 -05:00
Dianne Skoll
8c4a7e766f
Don't read world-writable directories
2022-12-20 10:26:47 -05:00
Dianne Skoll
df9ef6e13a
Print call stack if an error occurs in a user-defined function.
2022-03-25 14:03:06 -04:00
Dianne Skoll
4d17494371
Bump copyright date.
2022-03-14 21:12:20 -04:00
Dianne Skoll
d6b4fdd6d3
Always clean up.
2022-01-20 20:10:39 -05:00
Dianne Skoll
e637c20dee
Don't try to do filedir() shenanigans for "DO /absolute/path"
2022-01-20 19:47:04 -05:00
Dianne Skoll
e51d7f3c6d
Add "DO file" command which is equivalent to "INCLUDE [filedir()]/file"
2022-01-20 19:30:10 -05:00
Dianne Skoll
0a1d0011f6
Add "-+username" option to trust "username" for the purpose of allowing RUN.
2021-10-05 12:04:44 -04:00
Dianne Skoll
4395e2f7ed
Use "pclose" rather than "fclose" to close descriptors opened with "popen"
2021-09-05 11:45:55 -04:00
Dianne Skoll
3c9b5b786e
Convert \n from continuation lines in INCLUDECMD to ' ' to make it a little friendlier.
2021-09-05 11:28:54 -04:00
Dianne Skoll
895ac6f0f7
Fix bugs in INCLUDECMD. Improve INCLUDECMD documentation. Add ! feature
...
If you use:
INCLUDECMD !some_command
then RUN is disabled for the outptu of some_command.
2021-09-05 10:49:04 -04:00
Dianne Skoll
759ca0253e
Strip leading spaces from arg to INCLUDECMD.
2021-09-05 10:05:18 -04:00
Dianne Skoll
0ca368c8d9
Parse arg to INCLUDECMD as a character string, not a sequence of tokens.
2021-09-05 10:02:59 -04:00
Dianne Skoll
c65fd826a5
Use cached results of commands.
2021-09-04 23:25:37 -04:00
Dianne Skoll
a163a0c446
Add INCLUDECMD command
...
Executes a shell command and reads the resulting output as a Remind script.
2021-09-04 23:00:03 -04:00
Dianne Skoll
34409f7a7d
Update copyright year.
2021-04-02 10:43:54 -04:00
Dianne Skoll
4f6dcde980
Upper-case section references.
...
Prevent potential null pointer dereference.
2020-10-31 16:57:13 -04:00
Dianne Skoll
fbbffb4672
Bump version to 3.1.18 and copyright year to 2020.
2019-12-30 11:15:00 -05:00
Dianne Skoll
52d252723f
Depenguinization.
2018-11-04 10:56:47 -05:00
David F. Skoll
29c8475ea9
s/David/Dianne/
2015-04-17 02:07:18 -04:00
David F. Skoll
fc2d7ae446
Add support for __EOF__ to make Remind stop reading a file.
2014-05-22 14:19:06 -04:00
David F. Skoll
1e5b44d063
Make handling of continued lines same as in 3.1.8.
2010-04-25 10:07:12 -04:00
David F. Skoll
099ad9945d
Fix huge bug in handling of continued lines.
2010-04-25 10:03:13 -04:00
David F. Skoll
a1faa8d804
Finish up Purge Mode:
...
o Make it recognize constant expressions (yay!)
o Make it not add a blank line to end of *.purged files.
o Make it nuke #!P comments in the source files.
2010-04-21 09:02:25 -04:00
David F. Skoll
d294e62be1
More work on purge mode.
2010-04-20 11:34:07 -04:00
David F. Skoll
31f90b6c53
Add purge mode.
2010-04-20 10:59:57 -04:00
David F. Skoll
184d29c592
More work on -j ("Purge Mode") option.
2010-04-19 15:57:35 -04:00
David F. Skoll
0101d76113
Better -df output.
2009-11-16 00:09:40 -05:00
David F. Skoll
30a385a7bb
Fix bug in IsTopLevel.
2008-10-05 14:29:03 -04:00
David F. Skoll
58fbd51ef4
Call globfree to free memory used by glob.
2008-03-24 23:12:27 -04:00
David F. Skoll
5f574949e6
Nicer -df output. Document -df.
2008-03-24 20:39:47 -04:00
David F. Skoll
724bce4fb9
Add "-df" debugging flag to track file opens.
2008-03-24 20:22:00 -04:00
David F. Skoll
aad44f4716
Spit out errors if we can't open a non-readable file in a dir/*.rem.
2008-03-24 14:02:39 -04:00
David F. Skoll
26f0acab35
Opening of directories works properly.
2008-03-24 13:16:28 -04:00
David F. Skoll
3897973bc1
Improve error messages.
2008-03-24 13:11:21 -04:00
David F. Skoll
a85ee5f31c
INCLUDE /directory works. Still need more futzing to fix parse error.
2008-03-24 12:58:23 -04:00
David F. Skoll
b272863aa0
Prep for push.
2008-03-24 10:00:34 -04:00
David F. Skoll
8249964380
Start coding feature allowing "INCLUDE /directory" which basically
...
includes "/directory/*.rem" files in glob-order.
2008-03-22 23:28:51 -04:00
David F. Skoll
af81bbb299
Preserve "\n" in continued lines.
...
Set a flag if parser encounters [expr].
2008-03-15 14:06:12 -04:00
David F. Skoll
ce3bb191c4
More code cleanups and const-correctness.
2008-01-30 21:37:19 -05:00
David F. Skoll
f055664f77
More const-correctness.
2008-01-27 11:02:03 -05:00
David F. Skoll
0ed1bb4017
Remove $Id$ tags.
2007-08-08 12:05:28 -04:00
dfs
88ff86c910
Removed old non-ANSI, non-UNIX cruft.
2005-09-30 03:29:32 +00:00