Skip to content

fix(windows): use NUL instead of /dev/null for quiet redirection#52

Merged
rozsazoltan merged 1 commit intomasterfrom
fix/windows/quiet
Apr 19, 2026
Merged

fix(windows): use NUL instead of /dev/null for quiet redirection#52
rozsazoltan merged 1 commit intomasterfrom
fix/windows/quiet

Conversation

@rozsazoltan
Copy link
Copy Markdown
Contributor

Make QUIET redirection OS-aware so Windows commands do not write to /dev/null.

The previous implementation always used Unix-style redirection:

/dev/null 2>&1

That breaks PowerShell/cmd-based install steps on Windows with:
'The system cannot find the path specified.'

As a result, PIE and Composer downloads could fail even though PHP itself installed correctly.

This change switches Windows to:

NUL 2>&1

while preserving:

/dev/null 2>&1

for Linux and macOS.

Make QUIET redirection OS-aware so Windows commands do not write to
/dev/null.

The previous implementation always used Unix-style redirection:
  > /dev/null 2>&1

That breaks PowerShell/cmd-based install steps on Windows with:
  'A rendszer nem találja a megadott elérési utat.'

As a result, PIE and Composer downloads could fail even though PHP
itself installed correctly.

This change switches Windows to:
  > NUL 2>&1

while preserving:
  > /dev/null 2>&1

for Linux and macOS.
@rozsazoltan rozsazoltan added the needs-ci Triggers the CI test workflow label Apr 19, 2026
@rozsazoltan rozsazoltan merged commit a6268a5 into master Apr 19, 2026
4 checks passed
@rozsazoltan rozsazoltan deleted the fix/windows/quiet branch April 19, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci Triggers the CI test workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant