Empty output when a variable only contains `fzf` options
Opened this issue · 0 comments
tapyu commented
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"
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