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

Possible incompatibility in sed invocation #4

Closed
MHordecki opened this issue Mar 9, 2010 · 3 comments
Closed

Possible incompatibility in sed invocation #4

MHordecki opened this issue Mar 9, 2010 · 3 comments
Labels

Comments

@MHordecki
Copy link

When I run cake doc, a bug happens:
Error: Command failed: sed: can't read s/docco.css/resources/docco.css/: No such file or directory
at ChildProcess. (/usr/lib/node/libraries/sys.js:227:15)
at node.js:756:9

The problem is caused by two apostrophes in send invocation in the Cakefile. I'm by no means a sed guru, but for me just dropping those apostrophes altogether seems to fix the issue.

@jashkenas
Copy link
Owner

On this version of Sed (OS X), the quotation marks are required when using -i. It won't run if I leave them off. Sorry. We can change them to double quotes if that helps you any.

@MHordecki
Copy link
Author

Oh, so that's the incompatibility thing between gnu sed and bsd sed. By looking at manpages of both, I think I've came up with a solution. It's in my master: http://github.com/MHordecki/docco/blob/master/Cakefile . I haven't got any bsd-based os, and bsd sed for linux is nowhere to found, so YMMV.

@jashkenas
Copy link
Owner

Nicely done, merged to master.

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

No branches or pull requests

2 participants