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

Empty output when a variable only contains fzf options #904

Open
tapyu opened this issue Jul 8, 2024 · 0 comments
Open

Empty output when a variable only contains fzf options #904

tapyu opened this issue Jul 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tapyu
Copy link
Contributor

tapyu commented Jul 8, 2024

Describe the bug
Empty output when a variable only contains fzf options.

To Reproduce
Consider the following MWE

# search for a file in packages
apt-file -x search <package-file>

$ package-file: --- --header "Sorround the string by `\b` (in single quotes) for exact match"

It produces

Screencast.from.08-07-2024.15.56.22.webm

Expected behavior
I need to put a useless echo to avoid this bug:

# search for a file in packages
apt-file -x search <package-file>

$ package-file: echo "" --- --header "Sorround the string by `\b` (in single quotes) for exact match"

image

Versions:

  • OS:
❯ fastfetch -l none
tapyu@tapyu-ThinkPad-P73
------------------------
OS: Ubuntu jammy 22.04 x86_64
Host: 20QRCTO1WW (ThinkPad P73)
Kernel: 6.5.0-41-generic
Uptime: 5 days, 6 hours
Packages: 2923 (dpkg), 48 (nix-default), 12 (snap)
Shell: zsh 5.8.1
Display (AUO109B): 3840x2160 @ 60Hz
DE: Gnome 42.9
WM: Mutter (X11)
WM Theme: Yaru-dark
Theme: Yaru-dark [GTK2/3/4]
Icons: Yaru [GTK2/3/4]
Font: Ubuntu (11pt) [GTK2/3/4]
Cursor: Yaru (24px)
Terminal: WezTerm 20240624-065522-552bb1d6
Terminal Font: JetBrains Mono
CPU: Intel(R) Core(TM) i7-9750H (12) @ 4,50 GHz
GPU 1: NVIDIA Quadro P620 [Discrete]
GPU 2: Intel UHD Graphics 630 @ 1,15 GHz [Integrated]
Memory: 13,16 GiB / 23,11 GiB (57%)
Swap: 138,89 MiB / 2,00 GiB (7%)
Disk (/): 276,63 GiB / 467,89 GiB (59%) - ext4
Local IP (wlp82s0): 10.192.82.36/16 *
Battery: 100% [AC Connected]
Locale: en_US.UTF-8
@tapyu tapyu added the bug Something isn't working label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant