diff options
author | Ludovic Courtès <ludovic.courtes@inria.fr> | 2023-08-11 17:20:06 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-08-17 17:33:53 +0200 |
commit | 3363ff1867bb02c4aa4955db917ef1d67f2c47e6 (patch) | |
tree | 493d236ccf664a6562007f3c973afbca5b61aea4 /gnu/tests/version-control.scm | |
parent | 9896b37ac53e9b0504de55dd5ba4bfa2c241a7ed (diff) | |
download | guix-3363ff1867bb02c4aa4955db917ef1d67f2c47e6.tar.gz guix-3363ff1867bb02c4aa4955db917ef1d67f2c47e6.zip |
ui: 'load*' accepts /dev/fd/N files pointing to a pipe.
This allows users to write Bash commands like:
guix time-machine -C <(echo %default-channels) -- ...
or:
guix build -m <(echo '(specifications->manifest (list "guile"))')
Previously, on GNU/Linux, they would fail with:
error: failed to load '/dev/fd/63': No such file or directory
* guix/ui.scm (try-canonicalize-path): New procedure.
(load*): Use it.
* tests/guix-build.sh: Test 'guix build -m' with a /dev/fd/N file.
Diffstat (limited to 'gnu/tests/version-control.scm')
0 files changed, 0 insertions, 0 deletions