+static const char *madmutt_init_shell(void)
+{
+ struct passwd *pw = getpwuid(getuid());
+
+ if (pw)
+ return pw->pw_shell;
+ return getenv("SHELL") ?: "/bin/sh";
+}
+
+static const struct {
+ const char *k;
+ const char *(*f)(void);
+} madmutt_module_vars2[] = {
+ { "shell", madmutt_init_shell },
+ /*
+ ** .pp
+ ** Command to use when spawning a subshell. By default, the user's login
+ ** shell from \fT/etc/passwd\fP is used.
+ */
+};
+