Skip to content

Support for Extensionless Shell Scripts (Shebang Detection) #619

Closed

Description

@copyninja

Graphify currently identifies files solely by their file extension. Consequently, extensionless shell scripts—common in directories like /usr/bin/ or /usr/sbin/—are ignored, even when they contain a valid shebang (e.g., #!/bin/sh or #!/bin/bash).

Please consider adding support for extensionless shell scripts.

Activity

  1. added a commit that references this issue on May 1, 2026
  2. safishamsi commented on May 1, 2026

    @safishamsi
    Member

    Fixed in e73b606: extensionless files now have their first 128 bytes inspected for a shebang (#!). Known interpreters (bash, sh, python, ruby, node, lua, etc.) map to FileType.CODE and get included in the graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions