What version of Bun is running?
1.2.0+b0c5a7655
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
irm bun.sh/install.ps1 | iex
What is the expected behavior?
I expect my $env:Path to maintain the semicolons.
What do you see instead?
My $env:Path is space delimited.
Additional information
Line to the code. $Path is -split so when you reset it, it removes the ;.
|
$Path = (Get-Env -Key "Path") -split ';' |
|
if ($Path -notcontains $BunBin) { |
|
if (-not $NoPathUpdate) { |
|
$Path += $BunBin |
|
Write-Env -Key 'Path' -Value ($Path -join ';') |
|
$env:PATH = $Path; |
|
} else { |
|
Write-Output "Skipping adding '${BunBin}' to the user's %PATH%`n" |
|
} |
|
} |
This mainly breaks folks who don't shell out to powershell and run irm bun.sh/install.ps1 | iex directly inside an already open pwsh.exe or powershell.exe shell. So you would either remove the $env:Path redefinition or handle the $env:Path differently. And the below write-output could mean different things depending on how the irm | iex is run assuming you are willing to fix the $env:Path redefinition.
|
Write-Output "To get started, restart your terminal/editor, then type `"bun`"`n" |
What version of Bun is running?
1.2.0+b0c5a7655
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
irm bun.sh/install.ps1 | iexWhat is the expected behavior?
I expect my
$env:Pathto maintain the semicolons.What do you see instead?
My
$env:Pathis space delimited.Additional information
Line to the code.
$Pathis-splitso when you reset it, it removes the;.bun/src/cli/install.ps1
Lines 293 to 302 in ce53290
This mainly breaks folks who don't shell out to
powershelland runirm bun.sh/install.ps1 | iexdirectly inside an already openpwsh.exeorpowershell.exeshell. So you would either remove the$env:Pathredefinition or handle the$env:Pathdifferently. And the belowwrite-outputcould mean different things depending on how theirm | iexis run assuming you are willing to fix the$env:Pathredefinition.bun/src/cli/install.ps1
Line 304 in ce53290