Am 07.09.2025 um 17:15 schrieb Daniel Abrecht:

Hello,

Please note that /etc/environment does not contain any form of quoting or escaping, nor can it contain comments. Because the script /usr/sbin/update-info-dir sources /etc/environment, if any of the values contains a space, it'll try executing part of it as a command, which is not desirable.

Loading this file in a script correctly can be quiet tricky. I'm not sure why it's done here at all, but I think the following should work:
```

You may have a look at [1], when looking for the reason, why we source /etc/environment at all.

Thanks for the code suggestion, I'll have a look at it.

Hilmar

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536476
--
sigfault

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to