GNU bug report logs - #52372
gash-utils & fzf conflict

Previous Next

Package: guix;

Reported by: Blake Shaw <blake <at> nonconstructivism.com>

Date: Wed, 8 Dec 2021 11:24:01 UTC

Severity: normal

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#52372: closed (gash-utils & fzf conflict)
Date: Wed, 08 Dec 2021 17:34:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 08 Dec 2021 18:14:12 +0100
with message-id <87k0gfuhke.fsf <at> nckx>
and subject line Re: bug#52372: gash-utils & fzf conflict
has caused the debbugs.gnu.org bug report #52372,
regarding gash-utils & fzf conflict
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
52372: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52372
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Blake Shaw <blake <at> nonconstructivism.com>
To: bug-guix <at> gnu.org
Subject: gash-utils & fzf conflict
Date: Wed, 08 Dec 2021 18:23:04 +0700
Hello,

Gash-utils causes fzf to fail.

After installing gash-utils, attempting `bash5.0$ fzf` produces:
```
[Command failed: set -o pipefail; command find -L . -mindepth 1 \( -path '*/\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \) -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-]
```

Uninstalling gash-utils removes the problem.

Best,
Blake


[Message part 3 (message/rfc822, inline)]
From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Blake Shaw <blake <at> nonconstructivism.com>
Cc: bug-guix <at> gnu.org, 52372-done <at> debbugs.gnu.org
Subject: Re: bug#52372: gash-utils & fzf conflict
Date: Wed, 08 Dec 2021 18:14:12 +0100
[Message part 4 (text/plain, inline)]
Blake,

> Command failed: […] command find

This isn't ‘really’ a bug: fzf invokes whichever find(1) 
executable happens to be in $PATH at run time, and reasonably 
expects it to support the POSIX ‘-L’ option.

It also willfully tries to hide any useful error messages:

> 2> /dev/null

…maybe that's what makes Rust so safe?

gash-utils doesn't implement find -L, so failure is to be 
expected.  As you discovered the fix is as simple as uninstalling 
gash-utils, and possibly using it in a Guix environment if you 
really need it.

I don't think installing gash-utils globally into your main 
profile is a good idea!

Since find(1) is such a key requirement of fzf, it makes sense to 
treat it as a fixed input in this case and keep a reference to 
findutils' in a wrapper.

Done in commit 9bac41c2b8e7be5ab713402591ceeb32c635c214.

Thanks!

T G-R
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 158 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.