DEBUG: 3+ >>>> $url="https://powershell.visualstudio.com/2972bb5c-f20c-4a60-8bd9-00ffe9987edc/_apis/build/builds/133163/artifacts?artifactName=build&api-version=7.0&%24format=zip" DEBUG: 4+ >>>> curl -o pwsh.zip $url % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 15038 0 15038 0 0 13266 0 --:--:-- 0:00:01 --:--:-- 13284 100 13.5M 0 13.5M 0 0 7130k 0 --:--:-- 0:00:01 --:--:-- 7129k 100 39.7M 0 39.7M 0 0 13.4M 0 --:--:-- 0:00:02 --:--:-- 13.4M 100 64.3M 0 64.3M 0 0 16.2M 0 --:--:-- 0:00:03 --:--:-- 16.2M 100 90.2M 0 90.2M 0 0 18.2M 0 --:--:-- 0:00:04 --:--:-- 18.2M 100 104M 0 104M 0 0 18.8M 0 --:--:-- 0:00:05 --:--:-- 23.7M DEBUG: 5+ >>>> sha512sum pwsh.zip 4db8515b19dc4e5624afd5fa7a0db17b78346846c8e00a9457a7e700921398d4a50d1ed240f6a00045780666a79f514136e9bb605ff989f1c1a625ee401838d5 *pwsh.zip DEBUG: 6+ >>>> unzip -q pwsh.zip DEBUG: 7+ >>>> unzip -q build\build.zip DEBUG: 8+ >>>> .\publish\pwsh.exe -Version PowerShell 7.4.0-preview.4 DEBUG: 9+ >>>> .\publish\pwsh.exe -NoProfile -CommandWithArgs "Disable-ExperimentalFeature PSNativeCommandPreserveBytePipe" WARNING: Enabling and disabling experimental features do not take effect until next start of PowerShell. DEBUG: 10+ >>>> .\publish\pwsh.exe -NoProfile -CommandWithArgs "Get-ExperimentalFeature" Name Enabled Source Description ---- ------- ------ ----------- PSCommandNotFoundSuggestion True PSEngine Recommend potential commands based on fuzzy search on a CommandNotFoundException PSCommandWithArgs True PSEngine Enable `-CommandWithArgs` parameter for pwsh PSConstrainedAuditLogging True PSEngine PowerShell restriction logging when WDAC (Windows Defender Application Control) Code Integrity policy is set to Audit … PSCustomTableHeaderLabelDecoration True PSEngine Formatting differentiation for table header labels that aren't property members PSFeedbackProvider True PSEngine Replace the hard-coded suggestion framework with the extensible feedback provider PSLoadAssemblyFromNativeCode True PSEngine Expose an API to allow assembly loading from native code PSModuleAutoLoadSkipOfflineFiles True PSEngine Module discovery will skip over files that are marked by cloud providers as not fully on disk. PSNativeCommandErrorActionPreferen… True PSEngine Native commands with non-zero exit codes issue errors according to $ErrorActionPreference when $PSNativeCommandUseErro… PSNativeCommandPreserveBytePipe False PSEngine Byte output is retained when piping between two or more native commands PSSubsystemPluginModel True PSEngine A plugin model for registering and un-registering PowerShell subsystems PSWindowsNativeCommandArgPassing True PSEngine Enable 'Windows' as the native command argument passing mode DEBUG: 11+ >>>> .\publish\pwsh.exe -NoProfile -CommandWithArgs "HOSTNAME > bytepipe_off.txt" DEBUG: 12+ >>>> .\publish\pwsh.exe -NoProfile -CommandWithArgs "Enable-ExperimentalFeature PSNativeCommandPreserveBytePipe" WARNING: Enabling and disabling experimental features do not take effect until next start of PowerShell. DEBUG: 13+ >>>> .\publish\pwsh.exe -NoProfile -CommandWithArgs "Get-ExperimentalFeature" Name Enabled Source Description ---- ------- ------ ----------- PSCommandNotFoundSuggestion True PSEngine Recommend potential commands based on fuzzy search on a CommandNotFoundException PSCommandWithArgs True PSEngine Enable `-CommandWithArgs` parameter for pwsh PSConstrainedAuditLogging True PSEngine PowerShell restriction logging when WDAC (Windows Defender Application Control) Code Integrity policy is set to Audit … PSCustomTableHeaderLabelDecoration True PSEngine Formatting differentiation for table header labels that aren't property members PSFeedbackProvider True PSEngine Replace the hard-coded suggestion framework with the extensible feedback provider PSLoadAssemblyFromNativeCode True PSEngine Expose an API to allow assembly loading from native code PSModuleAutoLoadSkipOfflineFiles True PSEngine Module discovery will skip over files that are marked by cloud providers as not fully on disk. PSNativeCommandErrorActionPreferen… True PSEngine Native commands with non-zero exit codes issue errors according to $ErrorActionPreference when $PSNativeCommandUseErro… PSNativeCommandPreserveBytePipe True PSEngine Byte output is retained when piping between two or more native commands PSSubsystemPluginModel True PSEngine A plugin model for registering and un-registering PowerShell subsystems PSWindowsNativeCommandArgPassing True PSEngine Enable 'Windows' as the native command argument passing mode DEBUG: 14+ >>>> .\publish\pwsh.exe -NoProfile -CommandWithArgs "HOSTNAME > bytepipe_on.txt" VS-MACHINE2 DEBUG: 15+ >>>> .\publish\pwsh.exe -NoProfile -CommandWithArgs "HOSTNAME > bytepipe_on2.txt" | Out-File bytepipe_outer.txt DEBUG: 16+ >>>> ls -lah bytep* -rw-rw-rw- 1 vusr Users 11 Jun 21 22:25 bytepipe_off.txt -rw-rw-rw- 1 vusr Users 0 Jun 21 22:25 bytepipe_on.txt -rw-rw-rw- 1 vusr Users 0 Jun 21 22:25 bytepipe_on2.txt -rw-rw-rw- 1 vusr Users 11 Jun 21 22:25 bytepipe_outer.txt DEBUG: 18+ >>>> Set-PSDebug -Trace 0