From 8912c50fc7c9241fd49e61c2387eb0126a49a679 Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 21 May 2023 12:48:58 +0200 Subject: [PATCH] doc:fhs-envs: mention that runScript must be escaped by the caller --- doc/builders/special/fhs-environments.section.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/builders/special/fhs-environments.section.md b/doc/builders/special/fhs-environments.section.md index 0adacb59cfd4..13d744ab7549 100644 --- a/doc/builders/special/fhs-environments.section.md +++ b/doc/builders/special/fhs-environments.section.md @@ -17,7 +17,8 @@ - `extraInstallCommands` Additional commands to be executed for finalizing the derivation with runner script. - `runScript` - A command that would be executed inside the sandbox and passed all the command line arguments. It defaults to `bash`. + A shell command to be executed inside the sandbox. It defaults to `bash`. Command line arguments passed to the resulting wrapper are appended to this command by default. + This command must be escaped; i.e. `"foo app" --do-stuff --with "some file"`. See `lib.escapeShellArgs`. - `profile` Optional script for `/etc/profile` within the sandbox.