Title: Unexpected behavior in command execution when two files have the same basename. · Issue #2095 · PowerShell/PowerShell · GitHub
Open Graph Title: Unexpected behavior in command execution when two files have the same basename. · Issue #2095 · PowerShell/PowerShell
X Title: Unexpected behavior in command execution when two files have the same basename. · Issue #2095 · PowerShell/PowerShell
Description: Steps to reproduce Create two files Simple shell script, name it loop and mark it executable Simple powershell script, name it loop.ps1 Expected behavior Typing ./loop should launch the program loop Actual behavior When you type ./loop y...
Open Graph Description: Steps to reproduce Create two files Simple shell script, name it loop and mark it executable Simple powershell script, name it loop.ps1 Expected behavior Typing ./loop should launch the program loo...
X Description: Steps to reproduce Create two files Simple shell script, name it loop and mark it executable Simple powershell script, name it loop.ps1 Expected behavior Typing ./loop should launch the program loo...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2095
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected behavior in command execution when two files have the same basename.","articleBody":"\u003c!--\n\nIf it is a bug report:\n- make sure you are able to repro it on the latest released version. \nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\n- Search the existing issues.\n- Refer to the [FAQ](../docs/FAQ.md).\n- Refer to the [known issues](../docs/KNOWNISSUES.md).\n- Fill out the following repro template\n\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\n-->\n## Steps to reproduce\n\nCreate two files\n1. Simple shell script, name it **loop** and mark it executable\n2. Simple powershell script, name it **loop.ps1**\n## Expected behavior\n\nTyping ./loop should launch the program loop\n## Actual behavior\n\nWhen you type ./loop you would expect loop (the first file) to execute. It does not, in fact loop.ps1 executes.\n## Environment data\n\n\u003c!-- provide the output of $PSVersionTable -->\n\n```\nName Value \n---- ----- \nPSVersion 5.1.10032.0 \nPSEdition Linux \nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} \nBuildVersion 3.0.0.0 \nGitCommitId v0.6.0 \nCLRVersion \nWSManStackVersion 1.0 \nPSRemotingProtocolVersion 2.3 \nSerializationVersion 1.1.0.1 \n```\n","author":{"url":"https://github.com/nocentino","@type":"Person","name":"nocentino"},"datePublished":"2016-08-27T12:47:52Z","url":"https://github.com/PowerShell/PowerShell/issues/2095"}
| 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:97e194be-58dd-f9b4-a44b-a242aad6187e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECD8:133E8D:25B461:3451C8:6AFD91D8 |
| html-safe-nonce | e750c60ee9a0869cf57bd434fe19c9e2428708f7cd60112ff2699e875be19614 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0Q4OjEzM0U4RDoyNUI0NjE6MzQ1MUM4OjZBRkQ5MUQ4IiwidmlzaXRvcl9pZCI6Ijc1MjQwNTcyMDcxMDEyOTcxMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a43f4af2cd66b71ca50808b01fe7c9ee7b3160d87f6c1605ee5a952e930e59c3 |
| hovercard-subject-tag | issue:173594538 |
| 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/2095/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea1a1a9a36c666cf11643dc11ea9d461a46b6a3988f43a224e868d121567f02c/PowerShell/PowerShell/issues/2095 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea1a1a9a36c666cf11643dc11ea9d461a46b6a3988f43a224e868d121567f02c/PowerShell/PowerShell/issues/2095 |
| og:image:alt | Steps to reproduce Create two files Simple shell script, name it loop and mark it executable Simple powershell script, name it loop.ps1 Expected behavior Typing ./loop should launch the program loo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nocentino |
| 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