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

[Cygwin] command not found when using Windows binary and not providing command argument #4106

Open
6 of 11 tasks
eabase opened this issue Nov 21, 2024 · 1 comment
Open
6 of 11 tasks

Comments

@eabase
Copy link

eabase commented Nov 21, 2024

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.56.3 (add1aec)

OS

  • Linux
  • macOS
  • Windows
  • Cygwin
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

I have installed the Windows binary into C:\bin\fzf.exe, which is in my Cygwin path.
I have included the line eval "$(fzf --bash)" into my .bashrc.

I open Cygwin shell, no errors.

I hit [CTRL]+R, I get an error that make no sense:

C:\cygwin64\tmp\fzf-temp-3974864139: line 1: C:\bin\fzf.exe: command not found

If I run from bash fzf I get the same error.
If I run from bash fzf --help (or any other option) Fzf seem to work with no error.

It only breaks when given no argument!

PS. There is no recent version for fzf package. Do not use Cygwin package!

@eabase eabase changed the title C:\cygwin64\tmp\fzf-temp-3974864139: line 1: C:\bin\fzf.exe: command not found [Cygwin] command not found when using Windows bianry and not providing argument C:\cygwin64\tmp\fzf-temp-3974864139: line 1: C:\bin\fzf.exe: command not found Nov 21, 2024
@eabase eabase changed the title [Cygwin] command not found when using Windows bianry and not providing argument C:\cygwin64\tmp\fzf-temp-3974864139: line 1: C:\bin\fzf.exe: command not found [Cygwin] command not found when using Windows binary and not providing command argument Nov 21, 2024
@AnabasisXu
Copy link

export MSYS=enable_pcon works for me on Cygwin.
Source: https://github.com/junegunn/fzf/wiki/Cygwin

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

No branches or pull requests

2 participants