Title: `dotenv::GetPathFromArgs` matches `--env-file*` · Issue #54255 · nodejs/node · GitHub
Open Graph Title: `dotenv::GetPathFromArgs` matches `--env-file*` · Issue #54255 · nodejs/node
X Title: `dotenv::GetPathFromArgs` matches `--env-file*` · Issue #54255 · nodejs/node
Description: Version v22.5.1 (and main) Platform Linux ... 6.8.11-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.8.11-1kali2 (2024-05-30) x86_64 GNU/Linux Subsystem dotenv What steps will reproduce the bug? node/src/node_dotenv.cc Line 18 in 5411975 return strn...
Open Graph Description: Version v22.5.1 (and main) Platform Linux ... 6.8.11-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.8.11-1kali2 (2024-05-30) x86_64 GNU/Linux Subsystem dotenv What steps will reproduce the bug? node/src/node_...
X Description: Version v22.5.1 (and main) Platform Linux ... 6.8.11-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.8.11-1kali2 (2024-05-30) x86_64 GNU/Linux Subsystem dotenv What steps will reproduce the bug? node/src/node_...
Opengraph URL: https://github.com/nodejs/node/issues/54255
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`dotenv::GetPathFromArgs` matches `--env-file*`","articleBody":"### Version\r\n\r\nv22.5.1 (and `main`)\r\n\r\n### Platform\r\n\r\n```text\r\nLinux ... 6.8.11-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.8.11-1kali2 (2024-05-30) x86_64 GNU/Linux\r\n```\r\n\r\n\r\n### Subsystem\r\n\r\ndotenv\r\n\r\n### What steps will reproduce the bug?\r\n\r\nhttps://github.com/nodejs/node/blob/54119757a39a9f51cc58a936d74f001177b247d7/src/node_dotenv.cc#L18\r\n\r\nThe above linked code snippets incorrectly matches any argument beginning with `--env-file`.\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\nAlways\r\n\r\n### What is the expected behavior? Why is that the expected behavior?\r\n\r\n```console\r\n$ node --env-file-ABCD env.file \r\nnode: bad option: --env-file-ABCD\r\n```\r\n\r\n### What do you see instead?\r\n\r\n```console\r\n$ node --env-file-ABCD env.file\r\nnode: env.file: not found\r\n```\r\n\r\n### Additional information\r\n\r\nI have a patch for this, see https://github.com/nodejs/node/pull/54237#discussion_r1707937883. I figured I'd open this issue for tracking the bug.","author":{"url":"https://github.com/avivkeller","@type":"Person","name":"avivkeller"},"datePublished":"2024-08-07T21:49:53Z","url":"https://github.com/nodejs/node/issues/54255"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:efc8d538-9977-8f8b-3b3c-d36db5c48782 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C2E:37E706:191436E:20F138E:6AED8A0C |
| html-safe-nonce | 4daa8422e06d43ad8ab8dbe8fda29e70961704af67d7cb268a46b07e82864a48 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzJFOjM3RTcwNjoxOTE0MzZFOjIwRjEzOEU6NkFFRDhBMEMiLCJ2aXNpdG9yX2lkIjoiMjc1MDI3ODMxMTE3Mjk5OTY5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 565a64f5a6310a7234ba65f4675911d0d8f8ee958ccf7ae4c49b09d5fc2bc0b9 |
| hovercard-subject-tag | issue:2454414847 |
| 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/nodejs/node/54255/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eeb203608ef2eed2dd797c52b4cddcbb9b72e893ec51c3d996c4769cf4106f7b/nodejs/node/issues/54255 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eeb203608ef2eed2dd797c52b4cddcbb9b72e893ec51c3d996c4769cf4106f7b/nodejs/node/issues/54255 |
| og:image:alt | Version v22.5.1 (and main) Platform Linux ... 6.8.11-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.8.11-1kali2 (2024-05-30) x86_64 GNU/Linux Subsystem dotenv What steps will reproduce the bug? node/src/node_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | avivkeller |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width