Title: $PSScriptRoot is not populated when used in a default value for a non-mandatory script parameter · Issue #4688 · PowerShell/PowerShell · GitHub
Open Graph Title: $PSScriptRoot is not populated when used in a default value for a non-mandatory script parameter · Issue #4688 · PowerShell/PowerShell
X Title: $PSScriptRoot is not populated when used in a default value for a non-mandatory script parameter · Issue #4688 · PowerShell/PowerShell
Description: Steps to reproduce Run this script (via PowerShell -File ....) param( [Parameter(Mandatory = $false)] [string] $Foo = 'hi\{0}\hi' -f $PSScriptRoot ) Write-Host $Foo Function Bar { param( [Parameter(Mandatory = $false)] [string] $Bar = $P...
Open Graph Description: Steps to reproduce Run this script (via PowerShell -File ....) param( [Parameter(Mandatory = $false)] [string] $Foo = 'hi\{0}\hi' -f $PSScriptRoot ) Write-Host $Foo Function Bar { param( [Parameter...
X Description: Steps to reproduce Run this script (via PowerShell -File ....) param( [Parameter(Mandatory = $false)] [string] $Foo = 'hi\{0}\hi' -f $PSScriptRoot ) Write-Host $Foo Function Bar { param( [P...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4688
X: @github
Domain: github.com
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a16f823e-3fcb-4a45-e08f-ba9b0d2929cc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D86:D5FA7:61E1B0:870A48:6A57D6E1 |
| html-safe-nonce | d11fb4a8f545621ac0deb98f47aee8e3c459c8b16f8ab5b9f0c629da3a0ae6cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDg2OkQ1RkE3OjYxRTFCMDo4NzBBNDg6NkE1N0Q2RTEiLCJ2aXNpdG9yX2lkIjoiNDQ5OTYxODk4MDQ1MDI2MDcwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dd690e88bd3327f6ad5fbf803e8a1873ade580503aac3c3f5545aa1369d82f41 |
| hovercard-subject-tag | issue:253192969 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/4688/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b929d579dfe72179fa8531cb3fb1c603a42711266f21c8093445aa1d5f370a54/PowerShell/PowerShell/issues/4688 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b929d579dfe72179fa8531cb3fb1c603a42711266f21c8093445aa1d5f370a54/PowerShell/PowerShell/issues/4688 |
| og:image:alt | Steps to reproduce Run this script (via PowerShell -File ....) param( [Parameter(Mandatory = $false)] [string] $Foo = 'hi\{0}\hi' -f $PSScriptRoot ) Write-Host $Foo Function Bar { param( [Parameter... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9044d0f867aa9892268d1f430238ff123e11ee91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width