Skip to content

Conversation

@sideeffect42
Copy link
Member

NetBSD sed(1) does not accept -f - to read the script from stdin:

sed: -: No such file or directory

Since the script has to be copied to code-remote anyway (for the --script - case), instead of putting it into a here-document we can pass it into sed -e instead.
I decided to go with multiple -e options (one per line), but passing the whole script into a single -e should work as well.

NetBSD sed(1) does not accept -f - to read the script from stdin:

    sed: -: No such file or directory

Since the script has to be copied to code-remote anyway (for the `--script -`
case), instead of putting it into a here-document we can pass it into sed -e
instead.
I decided to go with multiple -e options (one per line), but passing the whole
script into a single -e should work as well.
@sideeffect42 sideeffect42 requested a review from 4nd3r October 11, 2025 19:32
@4nd3r 4nd3r merged commit f169e8c into skonfig:main Oct 12, 2025
1 check passed
@sideeffect42 sideeffect42 deleted the fix/type/__sed/netbsd-sed-f-stdin branch October 12, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants