Title: Should non-windows system users be required to include the extension when executing scripts? · Issue #1044 · PowerShell/PowerShell · GitHub
Open Graph Title: Should non-windows system users be required to include the extension when executing scripts? · Issue #1044 · PowerShell/PowerShell
X Title: Should non-windows system users be required to include the extension when executing scripts? · Issue #1044 · PowerShell/PowerShell
Description: Assume that I have written a script which is a paragon of portability. It runs on all the platforms without modification, and is in my PATH. On Windows, I type: PS> Hello and it executes! should I be able to do the same on non-windows pl...
Open Graph Description: Assume that I have written a script which is a paragon of portability. It runs on all the platforms without modification, and is in my PATH. On Windows, I type: PS> Hello and it executes! should I ...
X Description: Assume that I have written a script which is a paragon of portability. It runs on all the platforms without modification, and is in my PATH. On Windows, I type: PS> Hello and it executes! should...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/1044
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should non-windows system users be required to include the extension when executing scripts?","articleBody":"Assume that I have written a script which is a paragon of portability. It runs on all the platforms without modification, and is in my PATH. On Windows, I type:\n`PS> Hello`\nand it executes!\n\nshould I be able to do the same on non-windows platforms? Note that I have not typed the actual name of the file on Windows (which is `hello.ps1`), just `hello`.\n\n`#!powershell` does not address this issue, because it doesn't change the name of the script. Are we going to suggest that our users create 2 copies of the same file:\n`hello` and `hello.ps1`\none for Windows, another for not?\nare we going to require our users to type `hello.ps1` on non-Windows platforms?\n\nI suggest that we support our current behavior on non-Windows platforms, we supply the `.ps1`, and use the same disambiguation logic that we do for `.cmd`, `.exe`, etc, which an additional ` ` which is no extension. This way if files (on non-windows)\n\n```\nhello\nhello.ps1\n```\n\nwe would execute `hello`. _similar to what we would do if we found_ `hello.exe` _on windows_\nIf we find only `hello.ps1`, and the user types `hello`, we run it and not require the user to type the actual filename\n","author":{"url":"https://github.com/JamesWTruher","@type":"Person","name":"JamesWTruher"},"datePublished":"2016-05-26T18:16:59Z","url":"https://github.com/PowerShell/PowerShell/issues/1044"}
| 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:41f093fc-2931-c75e-5906-92b812a3fb58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CAAC:2E02E3:1E0929:2947BB:6AFD9FA9 |
| html-safe-nonce | 8dabc4a658f3bebda99b9ec527b4c299003ebeeaff683b0fa63aa6430bc69cd3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUFDOjJFMDJFMzoxRTA5Mjk6Mjk0N0JCOjZBRkQ5RkE5IiwidmlzaXRvcl9pZCI6IjgyMTkzNzAwMjk1ODY0MjM3MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 75d7ccc6cfccb5dacd451062a3ab5f06d263218950cc231b30d779850b1b2d16 |
| hovercard-subject-tag | issue:157046145 |
| 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/1044/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b026bce9d9bc246d0c7169cbc23cc012fb05660c7150b8d706396f5d572a280/PowerShell/PowerShell/issues/1044 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b026bce9d9bc246d0c7169cbc23cc012fb05660c7150b8d706396f5d572a280/PowerShell/PowerShell/issues/1044 |
| og:image:alt | Assume that I have written a script which is a paragon of portability. It runs on all the platforms without modification, and is in my PATH. On Windows, I type: PS> Hello and it executes! should I ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JamesWTruher |
| 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 | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width