Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sam crashes trying to open more than 255 files #110

Open
aksr opened this issue Apr 3, 2020 · 0 comments
Open

Sam crashes trying to open more than 255 files #110

aksr opened this issue Apr 3, 2020 · 0 comments

Comments

@aksr
Copy link

aksr commented Apr 3, 2020

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant