mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
parent
8f280d72ff
commit
6ef00a503a
2 changed files with 7 additions and 0 deletions
|
@ -13,6 +13,9 @@ source common.sh
|
|||
# Can we ask for the version number?
|
||||
nix-env --version | grep "$version"
|
||||
|
||||
nix_env=$(type -P nix-env)
|
||||
(PATH=""; ! $nix_env --help 2>&1 ) | grepQuiet -F "The 'man' command was not found, but it is needed for 'nix-env' and some other 'nix-*' commands' help text. Perhaps you could install the 'man' command?"
|
||||
|
||||
# Usage errors.
|
||||
expect 1 nix-env --foo 2>&1 | grep "no operation"
|
||||
expect 1 nix-env -q --foo 2>&1 | grep "unknown flag"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue