Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Sam crashes trying to open more than 255 files #110

@aksr

Description

@aksr
  1. Have a directory with >255 files.
  2. Execute sam *.
  3. samterm:panic: menuins: Resource temporarily unavailable

Edit:
It's a samterm's limitation in samterm.h:

`#define MAXFILES    256

Plan9port's sam doesn't have this limit, and since sam was intended to easily modify many files, I think this sam should remove it, too.

Sam's lack of internal limits and sizes is a virtue. Because it avoids all fixed-size tables and data structures, sam is able to make global changes to files that some of our other tools cannot even read.
—Rob Pike, The Text Editor sam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions