fix: nix shell multiple commands example (#8950)

The `-c` flag belongs to `sh` not `nix shell`. As it stands, the command errors with:

```
$ nix shell nixpkgs#gnumake --command sh --command "cd src && make"
sh: --command: invalid option
```

https://github.com/NixOS/nix/pull/8276 was good for readability, but it missed this since that PR used a find/replace script.
This commit is contained in:
thenbe 2023-09-07 22:25:32 +00:00 committed by GitHub
parent 5f55c33917
commit 5473e10249
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ R""(
* Run multiple commands in a shell environment: * Run multiple commands in a shell environment:
```console ```console
# nix shell nixpkgs#gnumake --command sh --command "cd src && make" # nix shell nixpkgs#gnumake --command sh -c "cd src && make"
``` ```
* Run GNU Hello in a chroot store: * Run GNU Hello in a chroot store: