From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: bug#30265: Fish shell has wrong path variables Date: Wed, 19 Sep 2018 11:09:50 +0200 Message-ID: <87pnx9yhsx.fsf@ambrevar.xyz> References: <87inbnpsx9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2YUp-0001A3-VR for bug-guix@gnu.org; Wed, 19 Sep 2018 05:10:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2YUk-0002yX-GZ for bug-guix@gnu.org; Wed, 19 Sep 2018 05:10:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g2YUk-0002y9-C8 for bug-guix@gnu.org; Wed, 19 Sep 2018 05:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g2YUj-0000C3-Tx for bug-guix@gnu.org; Wed, 19 Sep 2018 05:10:01 -0400 In-Reply-To: <87inbnpsx9.fsf@gmail.com> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 30265@debbugs.gnu.org Cc: meiyo.peng@gmail.com --=-=-= Content-Type: text/plain I haven't investigated too deep into this, but I've figured out a few things. First of all, to reproduce the issue: - Install fish. - Run `guix build --check fish`, it should output something like #+BEGIN_SRC sh > guix build --check fish Building /gnu/store/g9ra27952ay2a7j3mn7yp13b7m18kl1b-fish-2.7.1.drv - x86_64-linux grafting '/gnu/store/vgrav12zra9zky21ahm4x1qg8g4v58fj-fish-2.7.1' -> '/gnu/store/avk637800w1n7z1z0hnzx80r0fpd6729-fish-2.7.1'... /gnu/store/avk637800w1n7z1z0hnzx80r0fpd6729-fish-2.7.1 #+END_SRC - The graft source is a dead GC item: #+BEGIN_SRC sh > guix gc --list-dead | grep vgrav12zra9zky21ahm4x1qg8g4v58fj /gnu/store/vgrav12zra9zky21ahm4x1qg8g4v58fj-fish-2.7.1 #+END_SRC Collect it: #+BEGIN_SRC sh guix gc --delete /gnu/store/vgrav12zra9zky21ahm4x1qg8g4v58fj-fish-2.7.1 #+END_SRC - Start fish: #+BEGIN_SRC sh > fish fish: echo $_ " "; __fish_pwd ^ in command substitution called on standard input ... #+END_SRC I think Ricardo got a hunch of what's happening, except that it's not about cache files in the user home's directory. Instead, Fish seems to record the path to the graft source. A grep in the fish folder does not seem to reveal anything, nor does `strings /gnu/store/...-fish.../bin/fish`. Could this be a grafting issue? Like what was recently mentioned about Racket? Otherwise, as Meiyo pointed out, the solution might lie in patching fish.cpp if grafting is not responsible for this. -- Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAluiEl4ACgkQm9z0l6S7 zH/dYQf/RtmcrvyaEQl1MIHNXn1MBT+FTiHWnwcPTV7/70pwhlXwuNj+qX3Y+xqq RO9mfHGTmX2p66vq7aQxEKVrzQLAr+WH+wEMQsQst2aiU+5nwvjGoWRhW53FFuAN sK4kDCdpvO6nNMZk75hwbIuCprWoEqcHmIO3yoWr2lurbjvPRYskPVV3m44wMxSF Jz8f6v4BWYv2uktFXmI1Pom9nJ5MnKWp86/JqequySab88LfOiJ+uVqujfC5Dx9Q N/HXl/qaMcRMgyG+zHtV6uO0A9vPdUYm5gSU3rPAWb7/wjLrKOhizxRXpLdH9DiF XnqF6QKi0uGF4EnJ+Cn29GN0wbEnPg== =d86p -----END PGP SIGNATURE----- --=-=-=--