Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
I'm not able to create a posting with a comma either. Using a \ to escape the comma didn't help. If you do add a prompt for the post name, could that be optional? I.e., if I enter
The problem isn't Octopress, per se. The problem is globbing. I just tried to google the size of the problem, and found it virtually non-existent. So, I started looking at zsh more closely and happened upon this:
The issue is Octopress' rake command "rake new_post['his is a new post?']" contains an unquoted instance of [
Perhaps Octopress should have a command like?
rake new_post="This is a new post?"
But no, if you look at http://rake.rubyforge.org/files/doc/rakefile_rdoc.html (Tasks with Options) you see...
So, even if zsh weren't a problem, it appears the proper command in Rake syntax should be:
rake "new_post[This is a new post?]"
Not only would that be canonical, it should also get around the zsh glob issue as the left square brace would be in quotes.
We are a victim of Rake's syntax, not Octopresses, I'm afraid. But, I like my non-globbed overlord.
I wrote a function to side-step this issue (and just do new-post "title"). https://gist.github.com/2708914 Handles the globbing issue too.
This tops the results on Google for "octopress and zsh" (and it's where I figured out how to resolve my problem), so I figured I'd leave this here for the benefit of future searchers. For everybody else, sorry about the notification spam!
Latest version, used here with oh-my-zsh, some issues still persist:
I can't put special chars like: $!@#%^&.. in the title. But it's okay...