Skip to content
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

ANTs: .sh commands do not work #391554

Open
3 tasks done
sceptri opened this issue Mar 20, 2025 · 0 comments · May be fixed by #391624
Open
3 tasks done

ANTs: .sh commands do not work #391554

sceptri opened this issue Mar 20, 2025 · 0 comments · May be fixed by #391624
Labels
0.kind: bug Something is broken

Comments

@sceptri
Copy link

sceptri commented Mar 20, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

When using ANTs (e.g. nix-shell -p ants), the non .sh commands work seemingly fine, but .sh throw an error:

[nix-shell:~]$ antsRegistrationSyNQuick.sh 
/nix/store/gq9f8s768a70y0mzjbk4bj73mh9j41im-ANTs-2.5.4/bin/.antsRegistrationSyNQuick.sh-wrapped: line 113: basename: command not found
/nix/store/gq9f8s768a70y0mzjbk4bj73mh9j41im-ANTs-2.5.4/bin/.antsRegistrationSyNQuick.sh-wrapped: line 113: basename: command not found
/nix/store/gq9f8s768a70y0mzjbk4bj73mh9j41im-ANTs-2.5.4/bin/.antsRegistrationSyNQuick.sh-wrapped: line 113: cat: command not found

Steps to reproduce

  1. add ANTs to environment (nix-shell -p ants)
  2. run e.g. antsRegistrationSyNQuick.sh

Expected behaviour

It runs (and prints help for example)

Screenshots

No response

Relevant log output

/nix/store/gq9f8s768a70y0mzjbk4bj73mh9j41im-ANTs-2.5.4/bin/.antsRegistrationSyNQuick.sh-wrapped: line 113: basename: command not found
/nix/store/gq9f8s768a70y0mzjbk4bj73mh9j41im-ANTs-2.5.4/bin/.antsRegistrationSyNQuick.sh-wrapped: line 113: basename: command not found
/nix/store/gq9f8s768a70y0mzjbk4bj73mh9j41im-ANTs-2.5.4/bin/.antsRegistrationSyNQuick.sh-wrapped: line 113: cat: command not found

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.13.1, NixOS, 24.11 (Vicuna), 24.11.714127.f5a32fa27df9
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • channels(root): "home-manager-24.11.tar.gz, nixos-24.11, nixos-hardware, nixos-unstable"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Notify maintainers

@bcdarwin


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@sceptri sceptri added the 0.kind: bug Something is broken label Mar 20, 2025
@bcdarwin bcdarwin linked a pull request Mar 20, 2025 that will close this issue
13 tasks
bcdarwin added a commit to bcdarwin/nixpkgs that referenced this issue Mar 20, 2025
bcdarwin added a commit to bcdarwin/nixpkgs that referenced this issue Mar 20, 2025
bcdarwin added a commit to bcdarwin/nixpkgs that referenced this issue Mar 21, 2025
In this way coreutils is not removed from PATH.

Fixes NixOS#391554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant