Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Rename variable a to __a or similar? #102

Copy link
Copy link

Description

@mandarm
Issue body actions

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 ok to rename all occurrences of a to __a or __aa or something similar to reduce the chance of interfering with user-defined variables?

Alternative strategy:

__saved_a=$a # at the beginning of the script
a=$__saved_a # restore the value at the end

If either of these sound reasonable, I'd be happy to send a PR.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.