-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
FZF_DEFAULT_COMMAND
breaks when SHELL
set to pwsh
#3296
Comments
@mattcargile I am encountering the same issue. Have you been able to diagnose the underlying mechanism(s)? If not, could you share any promising leads that you think I could build on to troubleshoot myself? |
I'm not sure how to debug it unless you understand the On |
Ah, that explanation seems likely. I've run into issues with Windows treating things like that as a command name (i.e. just the resolvable name of an executable) rather than a command invocation/expression (i.e. to be parsed into a command to execute and arguments to pass to it). Does fzf have any mechanism to specify a default command for shell invocations that fzf will take care of parsing/interpreting itself? (analogous to the currently-supported environment variables |
I looked briefly at the Additionally, after looking at source, if you have |
man fzf
)Info
Problem / Steps to reproduce
When
$env:SHELL
or$SHELL
is set topwsh -NoLogo
on Windows or/usr/bin/pwsh
on *nix ( in my case it is RHEL 9 ), usage likefails with command failed.
I have even tried
on Windows and it still fails.
Workaround
On Windows set
$env:SHELL = 'cmd.exe'
. On *nix runningpwsh
, do$env:SHELL = '/usr/bin/bash'
or the like.Workaround Update
On
pwsh
version 7.3.8, setting$env:SHELL = 'pwsh'
does work now. It seems adding parameters will breakfzf
usage on Windows.The text was updated successfully, but these errors were encountered: