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

Fix handling of directories that look like flags in fish #605

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

schuelermine
Copy link
Contributor

When installed in Fish, z -C or z -s or similar flags unrecognized by Fish’s string replace error out with:

string replace: -s: unknown option

- (line 1): 
in command substitution
	called on line 56 of file -
in function '__zoxide_z' with arguments '-s'
	called on line 1 of file -
in function 'z' with arguments '-s'

(Type 'help string' for related documentation)

This addresses that by adding a -- separator in the string replace call, which suppresses interpretation of flags.

@ajeetdsouza ajeetdsouza merged commit 88d494f into ajeetdsouza:main Mar 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants