From 6a553f24439fe64fd3a2f0b5902f00590ca4241f Mon Sep 17 00:00:00 2001 From: Philip McGrath Date: Thu, 4 Mar 2021 04:11:50 -0500 Subject: [PATCH] rktio: patch rktio_process for "/bin/sh" on Guix Racket provides the functions `system` and `process`, which execute shell commands using `sh` (or `cmd` on Windows). Racket assumes that `sh` can be found at "/bin/sh", which is not necessarily true on Guix. This patch adds a special case for "/bin/sh" to `rktio_process`, the C function that implements the core of `system`, `process`, and related Racket functions. If: 1. The nonstandard but ubiquitous macro `_PATH_BSHELL` from is defined; and 2. `rktio_process` is called with the exact path "/bin/sh"; and 3. The file specified by `_PATH_BSHELL` exists; then `rktio_process` will execute the file specified by `_PATH_BSHELL` instead of "/bin/sh". Checking that the path specified by `_PATH_BSHELL` exists safeguards against obscure errors
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-07-07utils: Change `substitute' and `substitute*' to work with several regexps.Ludovic Courtès
* guix/build/utils.scm (substitute): Change to accept a `pattern+procs' parameter. Iterate over it. (substitute*): Adjust accordingly. * distro/base.scm (guile-1.8): Adjust accordingly.
2012-07-07distro: gawk: Disable parallel tests.Ludovic Courtès