Title: Different behavior on Linux vs. Windows for passing "*" to az cli · Issue #24170 · PowerShell/PowerShell · GitHub
Open Graph Title: Different behavior on Linux vs. Windows for passing "*" to az cli · Issue #24170 · PowerShell/PowerShell
X Title: Different behavior on Linux vs. Windows for passing "*" to az cli · Issue #24170 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/24170
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Different behavior on Linux vs. Windows for passing \"*\" to az cli","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\n1. Create a powershell script which passes variable to the \"--pattern\" argument to `az storage blob upload-batch`\r\n2. Set pattern variable to \"*\" or \"`*\"\r\n3. Run script on Windows: Voila it works\r\n4. Run script on Linux: It finds no files\r\n5. Hard-code the \"*\" into the \"--pattern\" argument on Linux, it works\r\n\r\nThere does not appear to be a way to pass \"*\" as variable to `az storage blob upload-batch` on linux, only hardcode it as a parameter; this behavior works as-expected on Windows.\r\n\r\n### Expected behavior\r\n\r\n```console\r\n$Path = \"`*\"\r\n az storage blob upload-batch `\r\n --auth-mode login `\r\n --pattern $Path `\r\n -s \".\" `\r\n -d $dest\r\n\r\n# Should upload all files in a directory and return a list of files; i.e. ['file1.txt']\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\n$Path = \"`*\"\r\n az storage blob upload-batch `\r\n --auth-mode login `\r\n --pattern $Path `\r\n -s \".\" `\r\n -d $dest\r\n\r\n# Actually returns [] or no output on Linux, but on Windows works consistently\r\n\r\n az storage blob upload-batch `\r\n --auth-mode login `\r\n --pattern '*' `\r\n -s \".\" `\r\n -d $dest\r\n\r\n# Works fine\r\n```\r\n\r\n\r\n### Error details\r\n\r\n```console\r\nNo errors\r\n```\r\n\r\n\r\n### Environment data\r\n\r\npwsh --version\r\nPowerShell 7.4.4\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/onionhammer","@type":"Person","name":"onionhammer"},"datePublished":"2024-08-16T17:42:00Z","url":"https://github.com/PowerShell/PowerShell/issues/24170"}
| 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:7757b561-1a8f-a630-5871-970b0abcfbfb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB1A:387143:268B97B:35D6FB8:6AFD502F |
| html-safe-nonce | 18383557c9e2bf66aa4be58daa78c4cacf08beac3ffe1bcdeec642008dc494bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjFBOjM4NzE0MzoyNjhCOTdCOjM1RDZGQjg6NkFGRDUwMkYiLCJ2aXNpdG9yX2lkIjoiODE4OTMxNTU0MDY2NjEwOTk5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 79d2f5a26d29d786cccefa2741ea5b6f2f56ec8dbf10b044784ebfd450db9bb5 |
| hovercard-subject-tag | issue:2470696043 |
| 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/24170/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff008d80eabe230bd3330ac42e21ab52621af1acd2b9cb70d9ffa8b680640f3c/PowerShell/PowerShell/issues/24170 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff008d80eabe230bd3330ac42e21ab52621af1acd2b9cb70d9ffa8b680640f3c/PowerShell/PowerShell/issues/24170 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | onionhammer |
| 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