-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
activate.fish: update fish major version check #2891
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
Conversation
Use fish's [`string sub`][ss] command to get fish's major version from `$FISH_VERSION`. The [`head`][head] program in OpenBSD does not have the `-c` flag. Addresses #2892. [head]: https://man.openbsd.org/head [ss]: https://fishshell.com/docs/current/cmds/string.html#sub-subcommand
Head branch was pushed to by a user without write access
|
@gaborbernat some tests are failing and it does not seem to be related to the changes in this PR. Are you able to look into it and possibly get this merged? |
gaborbernat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not worry about other tests until you add a test to validate your change.
Add `test_fish_path` to verify that the PATH is reverted to the original PATH after virtualenv deactivation. This verification confirms that the `_OLD_VIRTUAL_PATH` was correctly set in fish during the activation of the virtualenv.
Added a test in See if it looks good. |
Move test `test_fish_path` into `test_fish`. Rename the class that verifies the preservation of original `PATH` after virtualenv deactivation to `FishPath`.
Merge test in `FishPath` into `Fish`.
Use fish's
string subcommand to get fish's major version from$FISH_VERSION.The
headprogram in OpenBSD does not have the-cflag.Addresses #2892.