me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/guix
Thiago Jung Bauermann 12c06847f0
environment: Fix ‘--check’ with exported PS1 variable.
If your .bashrc (unnecessarily) exports PS1 and you’re in a non-login
shell, Guix crashes:

user@popigai:~$ guix shell --check coreutils
guix shell: checking the environment variables visible from shell '/bin/bash'...
Backtrace:
          14 (primitive-load "/home/user/.config/guix/current/bin/g…")
In guix/ui.scm:
   2206:7 13 (run-guix . _)
  2169:10 12 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 11 (with-exception-handler _ _ #:unwind? _ # _)
  1752:10 10 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
   658:37  9 (thunk)
   1320:8  8 (call-with-build-handler _ _)
   1320:8  7 (call-with-build-handler #<procedure 7fe393b7c420 at g…> …)
In guix/status.scm:
    800:4  6 (call-with-status-report _ _)
In guix/scripts/environment.scm:
   951:12  5 (_)
In guix/store.scm:
  2119:24  4 (run-with-store #<store-connection 256.99 7fe39627e500> …)
In guix/scripts/environment.scm:
   521:35  3 (_ _)
In unknown file:
           2 (string=? ("PS1" . "${debian_chroot:+($debian_chroot)…") …)
In ice-9/boot-9.scm:
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure string=: Wrong type argument in position 1 (expecting string): ("PS1" . "${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]${EXTRA}\\$ ")
user@popigai:~$

This is because the match pattern doesn’t expect `(vhash-assoc "PS1" actual)`
to return a pair.

* guix/scripts/environment.scm (validate-child-shell-environment): Change
match pattern to expect a pair.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-11-14 23:18:08 +01:00
..
build syscalls: Gracefully handle failure to load libc's libutil. 2021-10-26 14:53:43 +02:00
build-system guix: Upgrade to Bioconductor 3.14. 2021-11-07 22:34:34 +00:00
import import: utils: Add more licenses and extend their detection. 2021-11-12 23:34:18 +01:00
scripts environment: Fix ‘--check’ with exported PS1 variable. 2021-11-14 23:18:08 +01:00
store
tests tests: git: Make 'tag' directive non-interactive. 2021-09-18 19:37:45 +02:00
android-repo-download.scm
avahi.scm
base16.scm base16: Reduce GC pressure in bytevector->base16-string. 2021-09-10 17:30:54 +02:00
base32.scm base32: Work around (ash x N) miscompilation at '-O1' and below. 2021-09-21 15:15:52 +02:00
base64.scm
build-system.scm
bzr-download.scm
cache.scm cache: Gracefully handle non-existent cache. 2021-10-25 19:02:33 +02:00
channels.scm channels: 'channel-news-entry-commit' correctly resolves annotated tags. 2021-09-18 19:37:45 +02:00
ci.scm ci: Add jobs history support. 2021-08-22 21:36:29 +02:00
colors.scm
combinators.scm
config.scm.in
cpio.scm syscalls: Deduplicate device number conversion. 2021-09-23 18:17:16 +02:00
cve.scm
cvs-download.scm
d3.v3.js
deprecation.scm
derivations.scm
describe.scm
diagnostics.scm
discovery.scm discovery: Hide Guile warnings when loading modules. 2021-09-30 23:44:49 +02:00
docker.scm
download.scm download: "GUIX_DOWNLOAD_FALLBACK_TEST=none" disables fallback mechanisms. 2021-10-15 23:16:28 +02:00
elf.scm
extracting-download.scm Add (guix extracting-download). 2021-10-07 22:24:23 +02:00
ftp-client.scm
gexp.scm
git-authenticate.scm
git-download.scm
git.scm git: 'reference-available?' recognizes 'tag-or-commit'. 2021-09-18 23:08:32 +02:00
glob.scm
gnu-maintenance.scm
gnupg.scm
grafts.scm
graph.js
graph.scm graph: Add '--max-depth'. 2021-09-21 15:15:52 +02:00
hg-download.scm
http-client.scm
i18n.scm
inferior.scm inferior: 'cached-channel-instance' no longer calls 'show-what-to-build'. 2021-08-09 18:14:37 +02:00
ipfs.scm
licenses.scm import: utils: Add more licenses and extend their detection. 2021-11-12 23:34:18 +01:00
lint.scm lint: Add description check for common typos. 2021-10-24 14:26:12 -07:00
man-db.scm
memoization.scm
modules.scm
monad-repl.scm
monads.scm
nar.scm
narinfo.scm
openpgp.scm
packages.scm guix: packages: Clarify that list is a list of <license> records. 2021-11-13 09:52:19 +01:00
pki.scm
profiles.scm profiles: Build the man database only if 'man-db' is in the profile. 2021-11-06 23:01:21 +01:00
profiling.scm
progress.scm
quirks.scm
records.scm records: Support field sanitizers. 2021-08-12 12:34:13 +02:00
remote.scm store: 'map/accumulate-builds' handler checks the store received. 2021-10-28 21:30:27 +02:00
repl.scm
scripts.scm
search-paths.scm
self.scm maint: Factorize po xref translation. 2021-10-17 18:26:44 +02:00
serialization.scm
sets.scm
ssh.scm
status.scm
store.scm store: 'map/accumulate-builds' handler checks the store received. 2021-10-28 21:30:27 +02:00
substitutes.scm
svn-download.scm
swh.scm swh: Allows token from Software Heritage authentication service. 2021-10-15 23:16:28 +02:00
tests.scm
transformations.scm transformations: Git tags and 'git describe' style IDs are used as version. 2021-09-08 18:03:50 +02:00
ui.scm ui: 'load*' correctly reports 'read-error' in all cases. 2021-11-07 23:10:41 +01:00
upstream.scm Revert the #51061 patch series for now. 2021-10-08 23:31:34 +02:00
utils.scm utils: Define a target-x86-32? and target-x86-64? predicate. 2021-11-07 01:38:23 -04:00
workers.scm