Package: fish
Version: 3.3.1+ds-2
Followup-For: Bug #1001583
X-Debbugs-Cc: deb...@babilen5.org

Hello,

I am seeing the following behaviour when using fzf-history-widget:

--- snip ---
Argument is not a number: ''
Standard input (line 64): 
      if [ "$FISH_MAJOR" -gt 2 -o \( "$FISH_MAJOR" -eq 2 -a "$FISH_MINOR" -ge 4 
\) ];

in function 'fzf-history-widget'
--- snip ---

which is a direct effect of fish not providing its version information
correctly.

Ultimately, the following code is broken in fzf:

--- snip ---
set -l FISH_MAJOR (echo $version | cut -f1 -d.)
set -l FISH_MINOR (echo $version | cut -f2 -d.)
if [ "$FISH_MAJOR" -gt 2 -o \( "$FISH_MAJOR" -eq 2 -a "$FISH_MINOR" -ge 4 \) ];
  ...
--- snip ---

It would be fantastic if this issue could be addressed as it also
breaks other packages.

Thank you,
Wolodja

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_USER
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.utf-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fish depends on:
ii  bsdextrautils                       2.37.3-1+b1
ii  firefox [www-browser]               96.0.3-1
ii  fish-common                         3.3.1+ds-2
ii  google-chrome-stable [www-browser]  98.0.4758.80-1
ii  groff-base                          1.22.4-8
ii  libc6                               2.33-5
ii  libpcre2-32-0                       10.39-3
ii  libstdc++6                          11.2.0-14
ii  libtinfo6                           6.3-2
ii  lynx [www-browser]                  2.9.0dev.10-1
ii  man-db                              2.9.4-4
ii  python3                             3.9.7-1
ii  w3m [www-browser]                   0.5.3+git20210102-6

Versions of packages fish recommends:
ii  xsel  1.2.0+git9bfc13d.20180109-3

Versions of packages fish suggests:
pn  doc-base  <none>

-- no debconf information

Reply via email to