On Mon, 12 May 2025 10:30:46 +0200
Mathieu via Remind-fans <[email protected]> wrote:
> It seems that `INCLUDE/` does not allow expanding `~/` or `$HOME` or
> other variables, and therefore can only support absolute paths with
> the user name hardcoded if files to include are located in a home
> subdirectory.
Remember: In Remind, you can use expression-pasting (almost) anywhere on
a line, so something like:
INCLUDE [getenv("HOME")]/.reminders
should do the trick.
> and things like `INCLUDE /usr/share/remind/holidays` cannnot be used
> either on immutable distributions whereby the Remind installation
> directory will contain a unique hash.
That's what SYSINCLUDE is for. You need Remind version >= 05.02.01 for
that command.
You can make much more complex tests that search for a file and choose
the first one that's readable. See this file for a more complex search
example. It searches for a language file based on the settings of
various environment variables:
https://salsa.debian.org/dskoll/remind/-/blob/master/include/lang/auto.rem
Regards,
Dianne.
_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/