On NixOS, where `cmd` is a script with a non-`/usr/bin/env` shebang path, `@$(cmd)` does not capture output, but de-sugaring it does · Issue #6111 · xonsh/xonsh

Similar to #4056, but… weirder. Frankly other than the discrepancy between @$ and its de-sugared form there's a good chance this isn't even your bug. Current Behavior Given: A file ./binsh: #!/bin/...

GitHub
@Qyriad what unholy thing must they be doing here o.o
@erincandescent @Qyriad NixOS highlighted that symlink processing needs more love in the xonsh executor. We have a fix tho.