Skip to content

Conversation

@linuxlizard
Copy link
Owner

fix stdout vs stderr handling; fix .SHELLFLAGS

linuxlizard and others added 2 commits March 17, 2025 11:12
- subprocess calls should always send stderr outwards (no capture)

- add option to capture or not capture stdout so $(shell) will be captured but
recipes will go outwards (no capture)

- set stdout to flush on every print() to match GNU Make which uses setbuf()
(which isn't available to python) because otherwise stdout can race between
pymake process and subprocess stdout

- start tests on $(SHELLFLAGS) which is what led to finding these problems with
stdout
- remove stderr entirely from ShellReturn
- clean up calling subprocess.run() in shell.execute()
@linuxlizard linuxlizard merged commit bcbec21 into master Mar 22, 2025
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants