unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52372: gash-utils & fzf conflict
@ 2021-12-08 11:23 Blake Shaw via Bug reports for GNU Guix
  2021-12-08 17:14 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2021-12-08 17:30 ` Maxime Devos
  0 siblings, 2 replies; 5+ messages in thread
From: Blake Shaw via Bug reports for GNU Guix @ 2021-12-08 11:23 UTC (permalink / raw)
  To: 52372


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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#52372: gash-utils & fzf conflict
  2021-12-08 11:23 bug#52372: gash-utils & fzf conflict Blake Shaw via Bug reports for GNU Guix
@ 2021-12-08 17:14 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2021-12-09  5:29   ` Blake Shaw via Bug reports for GNU Guix
  2021-12-11 16:12   ` Timothy Sample
  2021-12-08 17:30 ` Maxime Devos
  1 sibling, 2 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-12-08 17:14 UTC (permalink / raw)
  To: Blake Shaw; +Cc: bug-guix, 52372-done

[-- Attachment #1: Type: text/plain, Size: 893 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#52372: gash-utils & fzf conflict
  2021-12-08 11:23 bug#52372: gash-utils & fzf conflict Blake Shaw via Bug reports for GNU Guix
  2021-12-08 17:14 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2021-12-08 17:30 ` Maxime Devos
  1 sibling, 0 replies; 5+ messages in thread
From: Maxime Devos @ 2021-12-08 17:30 UTC (permalink / raw)
  To: Blake Shaw, 52372

Blake Shaw via Bug reports for GNU Guix schreef op wo 08-12-2021 om
18:23 [+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.

Seems like 'coreutils' (or 'coreutils-minimal'?) should be added to the
wrap-program & inputs in the package definition of 'fzf' (untested),
and bin/fzf should be wrapped as well.

Or maybe it's not the fzf that is problematic, but the bash
completions.

Greetings,
Maxime.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#52372: gash-utils & fzf conflict
  2021-12-08 17:14 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2021-12-09  5:29   ` Blake Shaw via Bug reports for GNU Guix
  2021-12-11 16:12   ` Timothy Sample
  1 sibling, 0 replies; 5+ messages in thread
From: Blake Shaw via Bug reports for GNU Guix @ 2021-12-09  5:29 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 52372, 52372-done

Tobias Geerinckx-Rice <me@tobias.gr> writes:

got it, thanks!

-- 
“In girum imus nocte et consumimur igni”




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#52372: gash-utils & fzf conflict
  2021-12-08 17:14 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2021-12-09  5:29   ` Blake Shaw via Bug reports for GNU Guix
@ 2021-12-11 16:12   ` Timothy Sample
  1 sibling, 0 replies; 5+ messages in thread
From: Timothy Sample @ 2021-12-11 16:12 UTC (permalink / raw)
  To: 52372

Hi Blake and Tobias,

Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix@gnu.org>
writes:

> 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!

Definitely not!  Gash-Utils is very much pre-alpha software, and I don’t
really intend for those utilities to be useful beyond bootstrapping
their fully-featured GNU cousins.  Ideally there would be a
bootstrapping version of Gash-Utils that installs the utilities, and a
regular version that just has Scheme interfaces.  To date, it has felt a
little premature to bother with that.

However, if you find the Scheme interfaces from Gash-Utils useful, I’m
happy to make accommodations.  Right now, I think that Guilers either
write their own utilities like ‘find-files’ or they copy them out of
Guix’s ‘(guix build utils)’ module (I tend to do the latter).  It would
be nice if Gash-Utils could cover this use case and be a bit like
Python’s ‘shutil’, allowing a smoother transition from shell scripting
skills to Guile scripting skills.


-- Tim




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-11 16:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-08 11:23 bug#52372: gash-utils & fzf conflict Blake Shaw via Bug reports for GNU Guix
2021-12-08 17:14 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-12-09  5:29   ` Blake Shaw via Bug reports for GNU Guix
2021-12-11 16:12   ` Timothy Sample
2021-12-08 17:30 ` Maxime Devos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).