You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found #1830 and #1408 but this seems to be a different issue.
I'm running on macOS with zsh, and fzf 0.31.0 (brew). I have run the install script and sourced ~/.fzf.zsh.
Summary: when using reload() in conjunction with the $FZF_DEFAULT_COMMAND variable, I get an error if the command contains spaces. However, I can use commands that contain spaces inside reload() if I hard code them. I accept this may be a config issue on my end, though I am not aware of having changed any settings that might cause this to break. I also tried running these examples using /bin/sh and had the same problem.
I've just discovered fzf and it looks awesome so far; thanks!
When FZF_DEFAULT_COMMAND contains spaces, I get the "[Command failed: $FZF_DEFAULT_COMMAND]" when I try to reload. The ps example fails with that error message:
But if I take out the -ef part, it works (in the output from ps I can see the time creep up for the fzf command, so it really is re-running the command):
I tried the same thing with ls just to check the problem relates to the space characters in the variable. This causes the "[Command failed: $FZF_DEFAULT_COMMAND]" error on reload:
In the man page, the invocation example for reload takes the form <key|event>:reload: as opposed to <key|event>:reload() and I'm not entirely clear on why, but trying the colon syntax didn't affect the behaviour. However the docs there referred me to this example, from #1750:
man fzf
)Info
I found #1830 and #1408 but this seems to be a different issue.
I'm running on macOS with
zsh
, andfzf
0.31.0 (brew). I have run the install script and sourced~/.fzf.zsh
.Summary: when using
reload()
in conjunction with the$FZF_DEFAULT_COMMAND
variable, I get an error if the command contains spaces. However, I can use commands that contain spaces insidereload()
if I hard code them. I accept this may be a config issue on my end, though I am not aware of having changed any settings that might cause this to break. I also tried running these examples using/bin/sh
and had the same problem.I've just discovered
fzf
and it looks awesome so far; thanks!When FZF_DEFAULT_COMMAND contains spaces, I get the "[Command failed: $FZF_DEFAULT_COMMAND]" when I try to reload. The
ps
example fails with that error message:But if I take out the
-ef
part, it works (in the output fromps
I can see the time creep up for thefzf
command, so it really is re-running the command):I tried the same thing with
ls
just to check the problem relates to the space characters in the variable. This causes the "[Command failed: $FZF_DEFAULT_COMMAND]" error on reload:...but this works:
In the
man
page, the invocation example forreload
takes the form<key|event>:reload:
as opposed to<key|event>:reload()
and I'm not entirely clear on why, but trying the colon syntax didn't affect the behaviour. However the docs there referred me to this example, from #1750:...and this one worked fine! So it must be something to do with variable expansion?
Please let me know if you need any more info.
The text was updated successfully, but these errors were encountered: