Skip to content

Two small robustness fixes#4

Merged
hyle merged 2 commits intomainfrom
fix-misc-bugs
Mar 14, 2026
Merged

Two small robustness fixes#4
hyle merged 2 commits intomainfrom
fix-misc-bugs

Conversation

@hyle
Copy link
Owner

@hyle hyle commented Mar 14, 2026

This PR includes two small robustness fixes in fuori.

The first tightens shebang-based language detection by parsing the interpreter token instead of relying on broad substring matches. That prevents scripts like fish or pwsh from being mislabeled as Bash, while preserving existing behavior for common cases such as #!/bin/sh and #!/usr/bin/env python3.

The second fixes the command execution helper by setting FD_CLOEXEC on the exec-error pipe. This prevents the write end from leaking into successfully exec’d child processes and makes run_command_capture behave more correctly as a reusable primitive.

@hyle hyle self-assigned this Mar 14, 2026
@hyle hyle added the bug Something isn't working label Mar 14, 2026
@hyle hyle merged commit fa35c18 into main Mar 14, 2026
@hyle hyle deleted the fix-misc-bugs branch March 14, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant