Throw to key `match-error' with args `("match" "no matching pattern" ("SHELL" . #<file-append #<package bash@5.1.8 gnu/packages/bash.scm:124 7fabb6762dc0> "/bin/bash">))'
It seems the problem comes from narrowing scope of match to only booleans, strings and literal-strings, let's expand it for file-likes.
There is no anchors for lines in cgit's diffs, but the full diff is here: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=73684dc90e013f2f0cca1097b0c944bb9aa88709
Ok, the fix with tests is deployed:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=2acce55a00df9344d73101bb57a3961ba86105b0