environment: Update docstring of 'launch-environment'.

This is a followup to 78d55b703d.
Reported by Maxim Cournoyer.

* guix/scripts/environment.scm (launch-environment): Update docstring.
This commit is contained in:
Ludovic Courtès 2022-10-19 11:47:30 +02:00
parent 00ff6f7c39
commit c5d83bee93
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -448,11 +448,11 @@ and suitable for 'exit'."
(define* (launch-environment command profile manifest
#:key pure? (white-list '())
emulate-fhs?)
"Run COMMAND in a new environment containing INPUTS, using the native search
paths defined by the list PATHS. When PURE?, pre-existing environment
variables are cleared before setting the new ones, except those matching the
regexps in WHITE-LIST. When EMULATE-FHS?, first set up an FHS environment
with $PATH and generate the LD cache."
"Load the environment of PROFILE, which corresponds to MANIFEST, and execute
COMMAND. When PURE?, pre-existing environment variables are cleared before
setting the new ones, except those matching the regexps in WHITE-LIST. When
EMULATE-FHS?, first set up an FHS environment with $PATH and generate the LD
cache."
;; Properly handle SIGINT, so pressing C-c in an interactive terminal
;; application works.
(sigaction SIGINT SIG_DFL)