Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error on URL-encode strings #470

Closed
tomalterman opened this issue Dec 12, 2014 · 2 comments
Closed

Syntax error on URL-encode strings #470

tomalterman opened this issue Dec 12, 2014 · 2 comments

Comments

@tomalterman
Copy link

Running on a Mac in Yosemite I get:

-bash: /Users/tom/.aliases: line 99: syntax error near unexpected token `('
-bash: /Users/tom/.aliases: line 99: `alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1]);"''

Is there something I'm doing wrong?

@tomalterman
Copy link
Author

Ignore me. Fault of my own not closing a new alias

swinstanley pushed a commit to swinstanley/dotfiles that referenced this issue May 25, 2015
@Rudxain
Copy link

Rudxain commented May 10, 2023

The error seems to happen because python is python3. The current implementation of the alias only works with python2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants