Open
Description
Expected Behavior
Nix allows the use of shebang to define a custom interpreter, for example:
#! /usr/bin/env nix-shell
#! nix-shell -i zx -p zx
await $`echo 1`
zx should ignore multiple shebang lines instead only the first one.
Actual Behavior
SyntaxError: Invalid or unexpected token
Steps to Reproduce the Problem
- (setup) Install nix
- Add the above shebang lines to the start of the script (script.mjs)
- Try to run the script with
zx script.mjs
Specifications
- Version: 7.1.1
- Platform: macOS