Skip to content

Instantly share code, notes, and snippets.

@olleolleolle
Created July 5, 2013 09:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olleolleolle/5933425 to your computer and use it in GitHub Desktop.
Save olleolleolle/5933425 to your computer and use it in GitHub Desktop.
zsh: noglob option, in action. Rake tasks can take arguments in hard brackets. These brackets have special meaning in zsh. So, either turn off the special expansion stuff (noglob) or escape the brackets.
zsh: Too helpful. Turn off the extra features, so that you can run commands:
$ noglob foreman run -f Procfile.dev rake coupons:seed[1,"One year"]
$ rund rake coupons:seed\[1,"One year"\]
Oh, 'rund' is an alias:
$ alias |grep rund
rund='foreman run -f Procfile.dev'
runt='rund -e .env_test'
@lonroth
Copy link

lonroth commented Jul 9, 2013

For Heroku this is the way you make it work:
heroku run "rake coupons:seed[500,'Three months']" -a ranktrail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment