Title: Rename variable a to __a or similar? · Issue #102 · python-virtualenvwrapper/virtualenvwrapper · GitHub
Open Graph Title: Rename variable a to __a or similar? · Issue #102 · python-virtualenvwrapper/virtualenvwrapper
X Title: Rename variable a to __a or similar? · Issue #102 · python-virtualenvwrapper/virtualenvwrapper
Description: The virtualenvwrapper.sh shell assigns to a as a variable in 4 lines: 430 712 1111 1218 (as far as I can tell). I use a as a variable myself. Given that it is a simple, short variable, it is likely that other people do too. Would it be o...
Open Graph Description: The virtualenvwrapper.sh shell assigns to a as a variable in 4 lines: 430 712 1111 1218 (as far as I can tell). I use a as a variable myself. Given that it is a simple, short variable, it is likely...
X Description: The virtualenvwrapper.sh shell assigns to a as a variable in 4 lines: 430 712 1111 1218 (as far as I can tell). I use a as a variable myself. Given that it is a simple, short variable, it is likely...
Opengraph URL: https://github.com/python-virtualenvwrapper/virtualenvwrapper/issues/102
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rename variable a to __a or similar?","articleBody":"The virtualenvwrapper.sh shell assigns to ```a``` as a variable in 4 lines: 430 712 1111 1218 (as far as I can tell).\r\n\r\nI use ```a``` as a variable myself. Given that it is a simple, short variable, it is likely that other people do too.\r\n\r\nWould it be ok to rename all occurrences of a to __a or __aa or something similar to reduce the chance of interfering with user-defined variables?\r\n\r\nAlternative strategy:\r\n\r\n```\r\n__saved_a=$a # at the beginning of the script\r\na=$__saved_a # restore the value at the end\r\n```\r\n\r\nIf either of these sound reasonable, I'd be happy to send a PR.","author":{"url":"https://github.com/mandarm","@type":"Person","name":"mandarm"},"datePublished":"2024-07-02T08:07:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/102/virtualenvwrapper/issues/102"}
| 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:217b656f-2fa1-aad8-510e-e8e8688f0d0f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6D8:29FAD7:1048982:1687F8E:696A9405 |
| html-safe-nonce | 6beb23b93a843cbb4ed67f5e129a777dfeb5e3bf225761bd55cd9c41948ebda3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkQ4OjI5RkFENzoxMDQ4OTgyOjE2ODdGOEU6Njk2QTk0MDUiLCJ2aXNpdG9yX2lkIjoiNDU5MTg1MjQ3MTEwODQwODMyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ab701ef9692e31d7fe2479849c6db2f2f0b3e91579a9bbd5666185ad05b4e450 |
| hovercard-subject-tag | issue:2385547463 |
| 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/python-virtualenvwrapper/virtualenvwrapper/102/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bfd012a3496f55a784ddfebf6a7cf566f7a73e1958712f03bacc5cd12c0c4b75/python-virtualenvwrapper/virtualenvwrapper/issues/102 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bfd012a3496f55a784ddfebf6a7cf566f7a73e1958712f03bacc5cd12c0c4b75/python-virtualenvwrapper/virtualenvwrapper/issues/102 |
| og:image:alt | The virtualenvwrapper.sh shell assigns to a as a variable in 4 lines: 430 712 1111 1218 (as far as I can tell). I use a as a variable myself. Given that it is a simple, short variable, it is likely... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mandarm |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af |
| turbo-cache-control | no-preview |
| go-import | github.com/python-virtualenvwrapper/virtualenvwrapper git https://github.com/python-virtualenvwrapper/virtualenvwrapper.git |
| octolytics-dimension-user_id | 122572748 |
| octolytics-dimension-user_login | python-virtualenvwrapper |
| octolytics-dimension-repository_id | 589228542 |
| octolytics-dimension-repository_nwo | python-virtualenvwrapper/virtualenvwrapper |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 589228542 |
| octolytics-dimension-repository_network_root_nwo | python-virtualenvwrapper/virtualenvwrapper |
| 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 | 99aab454e5ddc8df30805fb76c114c3008a15842 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width