Skip to content

nix-command doesn't change the value (always 0) of $CMD_DURATION #13236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
demo-err opened this issue May 20, 2025 · 0 comments
Open
2 tasks done

nix-command doesn't change the value (always 0) of $CMD_DURATION #13236

demo-err opened this issue May 20, 2025 · 0 comments
Labels

Comments

@demo-err
Copy link

Describe the bug

the value of $CMD_DURATION doesn't change (always 0) after performing a nix command. e.g.:

nix shell nixpkgs#figlet

Steps To Reproduce

  1. do nix shell nixpkgs#boxes or any programme
  2. echo $CMD_DURATION
  3. try echo $CMD_DURATION after doing a command other than nix

Expected behavior

echo $CMD_DURATION should print the time it took to perform the last command

Metadata

nix-env (Nix) 2.24.14

Additional context

my default shell: fish, but i think that it's the same issue with nushell, bash, sh

Checklist


Add 👍 to issues you find important.

@demo-err demo-err added the bug label May 20, 2025
@demo-err demo-err changed the title nix-command doesn't change (always 0) the value of $CMD_DURATION nix-command doesn't change the value (always 0) of $CMD_DURATION May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant