Title: External commands fail if delete the powershell invoked directory · Issue #2116 · PowerShell/PowerShell · GitHub
Open Graph Title: External commands fail if delete the powershell invoked directory · Issue #2116 · PowerShell/PowerShell
X Title: External commands fail if delete the powershell invoked directory · Issue #2116 · PowerShell/PowerShell
Description: Steps to reproduce '$' means execute on bash, 'PS>' means execute on powershell. $ mkdir /tmp/test $ cd /tmp/test/ $ powershell PS> cd ../ PS> rmdir ./test/ PS> date Expected behavior Normal output of Linux date command is expected. Mon ...
Open Graph Description: Steps to reproduce '$' means execute on bash, 'PS>' means execute on powershell. $ mkdir /tmp/test $ cd /tmp/test/ $ powershell PS> cd ../ PS> rmdir ./test/ PS> date Expected behavior Normal output...
X Description: Steps to reproduce '$' means execute on bash, 'PS>' means execute on powershell. $ mkdir /tmp/test $ cd /tmp/test/ $ powershell PS> cd ../ PS> rmdir ./test/ PS> date Exp...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2116
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"External commands fail if delete the powershell invoked directory","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\n'$' means execute on bash, 'PS>' means execute on powershell.\n1. $ mkdir /tmp/test\n2. $ cd /tmp/test/\n3. $ powershell\n4. PS> cd ../\n5. PS> rmdir ./test/\n6. PS> date\n## Expected behavior\n\nNormal output of Linux date command is expected.\n\n```\nMon Aug 29 18:43:06 JST 2016\n```\n## Actual behavior\n\n```\nUnable to find the specified file.\nAt line:1 char:1\n+ date\n+ ~~~~\n + CategoryInfo : OperationStopped: (:) [], FileNotFoundException\n + FullyQualifiedErrorId : System.IO.FileNotFoundException\n\n```\n## Environment data\n\nCommands and outputs are following.\n\n```\ntakai@ubuntu1604:~$ mkdir /tmp/test\ntakai@ubuntu1604:~$ cd /tmp/test/\ntakai@ubuntu1604:/tmp/test$ powershell\nPowerShell\nCopyright (C) 2016 Microsoft Corporation. All rights reserved.\n\nPS /tmp/test> cd ../\nPS /tmp> rmdir ./test/\nPS /tmp> date\nUnable to find the specified file.\nAt line:1 char:1\n+ date\n+ ~~~~\n + CategoryInfo : OperationStopped: (:) [], FileNotFoundException\n + FullyQualifiedErrorId : System.IO.FileNotFoundException\n\nPS /tmp>\n```\n\n\u003c!-- provide the output of $PSVersionTable -->\n\n``` powershell\nPS /tmp> $PSVersionTable\n\nName Value\n---- -----\nPSVersion 6.0.0-alpha\nPSEdition Core\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\nBuildVersion 3.0.0.0\nGitCommitId v6.0.0-alpha.9\nCLRVersion\nWSManStackVersion 3.0\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\n```\n","author":{"url":"https://github.com/k-takai","@type":"Person","name":"k-takai"},"datePublished":"2016-08-29T09:52:33Z","url":"https://github.com/PowerShell/PowerShell/issues/2116"}
| 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:a8c60eb6-a341-aa75-dc60-556a03b54581 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D996:320167:9C8B2:D3973:6AFD99D9 |
| html-safe-nonce | ea8585dbbd5c54b6ceacc940c12c7e4ff6937497dfdeda4178de316abc08cd2a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTk2OjMyMDE2Nzo5QzhCMjpEMzk3Mzo2QUZEOTlEOSIsInZpc2l0b3JfaWQiOiI0NjYxNzQyOTQ0OTM0MjcxNDQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 064c08131047b9ff5ef0e060e101669fe94e9b8548135058fb80b57476061273 |
| hovercard-subject-tag | issue:173738041 |
| 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/2116/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d172b0f5a6e201bbb138295a4c0f0f1e872a2e91871e19278ffe2860ff0a2c85/PowerShell/PowerShell/issues/2116 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d172b0f5a6e201bbb138295a4c0f0f1e872a2e91871e19278ffe2860ff0a2c85/PowerShell/PowerShell/issues/2116 |
| og:image:alt | Steps to reproduce '$' means execute on bash, 'PS>' means execute on powershell. $ mkdir /tmp/test $ cd /tmp/test/ $ powershell PS> cd ../ PS> rmdir ./test/ PS> date Expected behavior Normal output... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | k-takai |
| 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