diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-10-28 21:28:18 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-10-28 22:30:17 +0200 |
commit | 343dc11702bf71876795b5d158cad860deca53a1 (patch) | |
tree | f76669e9a32c799380fb7246adddd3521f55a733 /doc | |
parent | 12b6c951cf5ca6055a22a2eec85665353f5510e5 (diff) | |
download | guix-343dc11702bf71876795b5d158cad860deca53a1.tar.gz |
guix hash: Interpret '-' as standard input.
* guix/scripts/hash.scm (guix-hash)[file-hash]: Special-case "-". * tests/guix-hash.sh: Add test. * doc/guix.texi (Invoking guix hash): Document it.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 1293b8bc1e..22d353c3b9 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -4791,7 +4791,9 @@ The general syntax is: guix hash @var{option} @var{file} @end example -@command{guix hash} has the following options: +When @var{file} is @code{-} (a hyphen), @command{guix hash} computes the +hash of data read from standard input. @command{guix hash} has the +following options: @table @code |