Skip to content

Add support for POSIX shell plugin#25

Open
taminob wants to merge 15 commits intomainfrom
feature/add-posix-shell-plugin
Open

Add support for POSIX shell plugin#25
taminob wants to merge 15 commits intomainfrom
feature/add-posix-shell-plugin

Conversation

@taminob
Copy link
Copy Markdown
Owner

@taminob taminob commented Apr 6, 2026

This PR introduces support for POSIX shell plugins.

For this, it creates a subprocess containing a shell.
The functions are called by entering them via stdin in the interactive shell.
In order to detect the end of the process, a random end marker is written to stdout that marks the end of stdout of the function.
The entire stdout of the function is interpreted as its result. If the function exits with an exit code not equal to zero, a CallError is returned instead of stdout.

Resolves #18

@taminob taminob self-assigned this Apr 6, 2026
@taminob taminob added enhancement New feature or request shell Related to shell plugin labels Apr 6, 2026
@taminob taminob changed the title -Feature/add posix shell plugin Add support for POSIX shell plugin Apr 6, 2026
@taminob taminob force-pushed the feature/add-posix-shell-plugin branch from 9373a7b to 650f4d5 Compare April 7, 2026 00:13
@taminob taminob force-pushed the feature/add-posix-shell-plugin branch from 650f4d5 to 4f2a153 Compare April 7, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request shell Related to shell plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for POSIX shell script plugins

1 participant