fzf: Ubuntu: "command failed" error with FZF_DEFAULT_COMMAND="rg --files"

  • I have read through the manual page (man fzf)
  • I have the latest version of fzf
  • I have searched through the existing issues

Info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • zsh
    • fish

Problem / Steps to reproduce

  1. Pipe in rg --files | fzf => Works fine.
  2. set/export FZF_DEFAULT_COMMAND='rg --files' => Error image
(✓) 11:17:08 [~]
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Pop!_OS 18.04 LTS"
(✓) 11:17:42 [~]
$ uname -a
Linux p5520 5.3.0-7625-generic #27~1576774585~18.04~c7868f8-Ubuntu SMP Thu Dec 19 20:37:47 UTC  x86_64 x86_64 x86_64 GNU/Linux

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 23 (13 by maintainers)

Most upvoted comments

Does $SHELL -c 'rg --files' work?

(✓) 14:22:15 [~]
$ echo $SHELL
/bin/bash
(✓) 14:15:07 [~]
$ $FZF_DEFAULT_COMMAND
(✓) 14:15:11 [~]
$ $SHELL -c 'rg --files' | head -n 3
macos-guest-virtualbox.sh
1
2
(✓) 14:15:32 [~]
$ echo "That worked"
That worked

Piping also works:

(✓) 14:21:51 [~]
$ $SHELL -c 'rg --files' | fzf

Thank you for assisting!

Let us know when you can @pckilgore 👍