Closed
Description
Steps to reproduce
Put in your PS profile
Write-Host 'PROFILE'
Create a script ./foo.ps1
and chmod +x
on it
#!/usr/local/bin/powershell
Write-Host 'foo'
From bash call ./foo.ps1
Expected behavior
Should not load profile
ash-3.2$ ./foo.ps1
foo
Reason: that's how bash handles it
Actual behavior
Load profile
ash-3.2$ ./foo.ps1
PROFILE
foo
Environment data
v0.4.0