/etc/sysconfig/* scripts one can have ordinary
name=value assignments, of course.
But these files are interpreted by
. from a shell, aren't they? Are there any restrictions upon the shell language that can legitimately (i.e. in accordance with whatever rules there are for the operating system) and portably (i.e. across multiple operating systems) be used in them? Or can one use arbitrary (POSIX) shell language?
I am thinking of things like:
- complex assignments:
- sourcing common "library" or "helper" scripts
(The equivalent to
/etc/sysconfig on Debian is
/etc/default, which does have rules about the format. Debian's Policy Manual requires that files in
/etc/default "must contain only variable settings and comments in POSIX.1-2017
sh format". This question is about RedHat's