Title: Need mechanism to disable globbing · Issue #5167 · PowerShell/PowerShell · GitHub
Open Graph Title: Need mechanism to disable globbing · Issue #5167 · PowerShell/PowerShell
X Title: Need mechanism to disable globbing · Issue #5167 · PowerShell/PowerShell
Description: Globbing support on Linux has caused us to have to revert to using bash scripts because we can't pass parameters that contain * through to the executable. In this case, we are trying to invoke a C++ pkg manager called conan. It would be ...
Open Graph Description: Globbing support on Linux has caused us to have to revert to using bash scripts because we can't pass parameters that contain * through to the executable. In this case, we are trying to invoke a C+...
X Description: Globbing support on Linux has caused us to have to revert to using bash scripts because we can't pass parameters that contain * through to the executable. In this case, we are trying to invoke ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5167
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need mechanism to disable globbing","articleBody":"Globbing support on Linux has caused us to have to revert to using bash scripts because we can't pass parameters that contain `*` through to the executable. In this case, we are trying to invoke a C++ pkg manager called conan. It would be nice to have an option like `set -o noglob` in bash to disable globbing.\r\n\r\nSteps to reproduce\r\n------------------\r\nTry to execute conan (or echoargs) with:\r\n\r\n```powershell\r\nconan info --only \"None\" --package_filter 'PkgName/*' --cwd ../..\r\n```\r\nNote: I've tried quoting the arg and escaping the `*`. Neither works with conan.\r\n\r\nExpected behavior\r\n-----------------\r\nThe `PkgName/*` gets passed through to conan,\r\n\r\nActual behavior\r\n---------------\r\nThis generates an error:\r\n```none\r\nCannot find path '/home/hillr/code/dotnet/echoargs/bin/Debug/netcoreapp2.0/PkgName' because it does not exist.\r\nAt line:1 char:1\r\n+ dotnet ./echoargs.dll info --only \"None\" --package_filter PkgName/* - ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : ObjectNotFound: (/home/hillr/cod...eapp2.0/PkgName:String) [], ItemNotFoundException\r\n + FullyQualifiedErrorId : PathNotFound\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-beta.8\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.8\r\nOS Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014\r\nPlatform Unix\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n\r\nRelated issues: #3931 #4971 #4683 and PR #4489","author":{"url":"https://github.com/rkeithhill","@type":"Person","name":"rkeithhill"},"datePublished":"2017-10-19T17:02:35Z","url":"https://github.com/PowerShell/PowerShell/issues/5167"}
| 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:33a01579-11d1-bf39-9b4e-5a4a833af3a9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4B4:F428C:12D3F9:19CCE6:6AFD4CAF |
| html-safe-nonce | 189b151605e0016de5a9a1e5399bf795f514341186feaec91c99d068463ecc3c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEI0OkY0MjhDOjEyRDNGOToxOUNDRTY6NkFGRDRDQUYiLCJ2aXNpdG9yX2lkIjoiNDA0MTg2MzY2ODE1NTg5NDk1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 86010d35a02f0d4d26ed1ba15f49ed1b3a13f96466cc479b667de3f6ba8268ae |
| hovercard-subject-tag | issue:266917468 |
| 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/5167/issue_layout |
| twitter:image | https://opengraph.githubassets.com/31adc3a104fb9a17c4f15b7a5145d8beb0036870b991093ea728450142007c37/PowerShell/PowerShell/issues/5167 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/31adc3a104fb9a17c4f15b7a5145d8beb0036870b991093ea728450142007c37/PowerShell/PowerShell/issues/5167 |
| og:image:alt | Globbing support on Linux has caused us to have to revert to using bash scripts because we can't pass parameters that contain * through to the executable. In this case, we are trying to invoke a C+... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rkeithhill |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width