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

TOC creating from STDIN on Mac OS X without coreutils fails, because BSD version of mktemp command require an argument. #11

Closed
zer4tul opened this issue Jul 7, 2015 · 1 comment

Comments

@zer4tul
Copy link
Contributor

zer4tul commented Jul 7, 2015

TOC creating from STDIN on Mac OS X without GNU coreutils will fail, the error raised out like below:

$ cat foo.md | gh-md-toc -
gh-md-toc: line 144: $gh_tmp_md: ambiguous redirect

It fails because the mktemp command shipped with Mac OS X comes from FreeBSD, witch has different behaviour from the GNU coreutils one.

$ mktemp
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix

I've send a pull request to fix this.

@ekalinin
Copy link
Owner

ekalinin commented Jul 8, 2015

Fixed in #12.

@ekalinin ekalinin closed this as completed Jul 8, 2015
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