Title: Introduce mode that disables aliases in scripts · Issue #2000 · PowerShell/PowerShell · GitHub
Open Graph Title: Introduce mode that disables aliases in scripts · Issue #2000 · PowerShell/PowerShell
X Title: Introduce mode that disables aliases in scripts · Issue #2000 · PowerShell/PowerShell
Description: Inspired by PR #1901, I suggest Microsoft create a new version of strict mode for better writing style. In this new version, suppress all aliases by default. (People really should not use aliases in scripts/modules!) Enforcing good comma...
Open Graph Description: Inspired by PR #1901, I suggest Microsoft create a new version of strict mode for better writing style. In this new version, suppress all aliases by default. (People really should not use aliases i...
X Description: Inspired by PR #1901, I suggest Microsoft create a new version of strict mode for better writing style. In this new version, suppress all aliases by default. (People really should not use aliases i...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2000
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Introduce mode that disables aliases in scripts","articleBody":"Inspired by PR #1901, I suggest Microsoft create a new version of strict mode for better writing style. In this new version, suppress **all** aliases by default. (People really should not use aliases in scripts/modules!) Enforcing good command invoking style makes backward compatibility easier both for Microsoft and script writer.\n\nExample:\n\n``` PowerShell\nSet-StrictMode -Version 123; # 123 is an imaginary version number.\niwr -Uri example.com; # This line fails since aliases are suppressed here.\nSet-Alias iwr Invoke-WebRequest;\niwr -Uri example.com; # This line succeeds since `iwr` is set explicitly in the scope.\n```\n\nIf suppressing all aliases is not approachable, it at least should suppress all aliases that are identical to utilities that is popular in Linux/Unix.\n\nAnd Microsoft should leave Linux/Unix aliases available to scripts that are not setting this version of strict mode and running on Windows PowerShell. Removing those aliases from Windows PowerShell interactive sessions is good. That'll be acceptable for compatibility and better consistency with PowerShell on other systems.\n","author":{"url":"https://github.com/GeeLaw","@type":"Person","name":"GeeLaw"},"datePublished":"2016-08-22T03:01:36Z","url":"https://github.com/PowerShell/PowerShell/issues/2000"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:f0fb5343-c212-ce08-1cf4-98f454e2ebb7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B530:8310E:14E38F:1CF146:6AFDAD00 |
| html-safe-nonce | 9c361030c0ffd81a54f0fdb7e30543b3de1dea8eb93144bc7fb46b79e6b15b58 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTMwOjgzMTBFOjE0RTM4RjoxQ0YxNDY6NkFGREFEMDAiLCJ2aXNpdG9yX2lkIjoiNjkxMzQ1MTM3ODg5NTMzNDY1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d5fd1331ce5e52782ba0698a8c53a81b50b426efbd9e5d55e25f65dea77a7638 |
| hovercard-subject-tag | issue:172361088 |
| 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/2000/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29b6b6146863990364a49c70463abb59b39b9618e96217cfb95a7ce02cf264cc/PowerShell/PowerShell/issues/2000 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29b6b6146863990364a49c70463abb59b39b9618e96217cfb95a7ce02cf264cc/PowerShell/PowerShell/issues/2000 |
| og:image:alt | Inspired by PR #1901, I suggest Microsoft create a new version of strict mode for better writing style. In this new version, suppress all aliases by default. (People really should not use aliases i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GeeLaw |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| 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 | 0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width