8000 Allow multiple lines of hashbangs · Issue #715 · google/zx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow multiple lines of hashbangs #715
Open
@fmnxl

Description

@fmnxl

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

  1. (setup) Install nix
  2. Add the above shebang lines to the start of the script (script.mjs)
  3. Try to run the script with zx script.mjs

Specifications

  • Version: 7.1.1
  • Platform: macOS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0