Nix-shell now errors with strange message?

Am running unstable. Recently, if I opt to use nix-shell to test a package from search.nixos.org, the shell breaks without loading. For example,

$ nix-shell -p firefox-unwrapped
these 2 paths will be fetched (62.86 MiB download, 250.65 MiB unpacked):
  /nix/store/0qswil8lgwzzshmbrma9n5fz3b6j0xdy-firefox-unwrapped-123.0.1
  /nix/store/qsm1k9fxcsdwf8m98jag7ma6dg2r2z3k-nss-3.98
copying path '/nix/store/qsm1k9fxcsdwf8m98jag7ma6dg2r2z3k-nss-3.98' from 'https://cache.nixos.org'...
copying path '/nix/store/0qswil8lgwzzshmbrma9n5fz3b6j0xdy-firefox-unwrapped-123.0.1' from 'https://cache.nixos.org'...
build input /nix/store/xwsq5dj63439l1pphrb76zjrididi3vn-patchelf-0.15.0 /nix/store/hcrhrs1mmm2q5a3rzd6xwypqgkpm13vx-update-autotools-gnu-config-scripts-hook /nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh /nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh /nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh /nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh /nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh /nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh /nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh /nix/store/jivxp510zxakaaic7qkrb7v1dd2rdbw9-multiple-outputs.sh /nix/store/ilaf1w22bxi6jsi45alhmvvdgy4ly3zs-patch-shebangs.sh /nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh /nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh /nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh /nix/store/wmknncrif06fqxa16hpdldhixk95nds0-strip.sh /nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0 does not exist
bash: rm: No such file or directory

I don’t quite understand the last message: is it complaining it can’t fine rm, or the files listed (all do indeed exist). Anyway, if anyone has some suggestions, I would appreciate it.

OK, this problem was my fault (of course!). Within my home-manager configuration, I had statements setting up various stuff for bash, among which:

               bash = {
                  enable = true;
                  bashrcExtra = ''
                    IFS=$'\n'
                  '';
                  shellAliases = {
<snip>
                  };
                }; # end bash declarations

Setting a value for IFS here apparently interferes with proper parsing during nix-shell invocations; removing this statement solved the problem.