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

sed -z is not supported on BSD systems #228

Open
andsens opened this issue Feb 21, 2025 · 1 comment
Open

sed -z is not supported on BSD systems #228

andsens opened this issue Feb 21, 2025 · 1 comment
Labels

Comments

@andsens
Copy link
Owner

andsens commented Feb 21, 2025

As noted in #223 (comment) by @ushkinaz sed -z used here

git ls-files -z | sed -z "s#^#${repo//#/\\#}/#"

breaks on BSD systems. Replacing it with git ls-files -z | sed "s#\x00#\x00${repo//#/\\#}/#" should do the trick.

@ushkinaz
Copy link

git ls-files -z | sed "s#\x00#\x00${repo//#/\#}/#"

leads to

» homeshick link ~
sed: first RE may not be empty
fatal: run_command returned non-zero status for home/.oh-my-zsh

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

2 participants