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

conda 4.4 + zsh: conda:shift:1: shift count must be <= $# #6045

Closed
anntzer opened this issue Sep 30, 2017 · 3 comments
Closed

conda 4.4 + zsh: conda:shift:1: shift count must be <= $# #6045

anntzer opened this issue Sep 30, 2017 · 3 comments
Labels
cli pertains to the CLI interface locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Sep 30, 2017

With conda 4.4.0rc1 and zsh, calling the new conda shell function with no arguments results in

$ conda
conda:shift:1: shift count must be <= $#
usage: conda [-h] [-V] command ...
conda: error: argument command: invalid choice: '' (choose from 'clean', 'config', 'create', 'help', 'info', 'install', 'list', 'package', 'remove', 'uninstall', 'search', 'update', 'upgrade')

It's mostly an esthetic point but it would be nice if the shell error message (shift count) was not shown.

@kalefranz
Copy link
Contributor

kalefranz commented Sep 30, 2017 via email

@anntzer
Copy link
Contributor Author

anntzer commented Oct 1, 2017

Some related issues:

  1. conda nonexistentcommand exits with status 1 but does not print any error message.
  2. The changelog recommends putting conda.sh in a profile folder but this usually won't work if the user's terminals are not login shells (as is the default on Linux): nonlogin shells do not read the profile folder and do not inherit functions (even though the environment is inherited. I just sourced conda.sh in my .zshrc (rather than my .zprofile).

@kalefranz kalefranz added type::bug describes erroneous operation, use severity::* to classify the type source::community catch-all for issues filed by community members labels Oct 5, 2017
@kalefranz kalefranz added this to the 4.4.0 milestone Oct 5, 2017
@kalefranz kalefranz modified the milestones: 4.4.0, 4.4.1 Nov 14, 2017
kalefranz added a commit to kalefranz/conda that referenced this issue Nov 29, 2017
kalefranz added a commit to kalefranz/conda that referenced this issue Nov 29, 2017
kalefranz added a commit to kalefranz/conda that referenced this issue Nov 30, 2017
@kalefranz kalefranz modified the milestones: 4.4.1, 4.4.0 Dec 4, 2017
nehaljwani added a commit that referenced this issue Dec 6, 2017
@mbargull mbargull added the cli pertains to the CLI interface label Mar 13, 2018
@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Sep 15, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli pertains to the CLI interface locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type
Projects
None yet
Development

No branches or pull requests

3 participants