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

Not working in Solaris 10: tail command #1148

Closed
cy6erskunk opened this issue Jul 6, 2016 · 5 comments
Closed

Not working in Solaris 10: tail command #1148

cy6erskunk opened this issue Jul 6, 2016 · 5 comments
Labels
bugs Oh no, something's broken :-( OS: Solaris

Comments

@cy6erskunk
Copy link

nvm.sh fails due to differences in tail implementation. I'm getting the usage: tail [+/-[n][lbc][f]] [file] error and it seems the answer here (http://stackoverflow.com/questions/314321/whats-the-solaris-equivalent-to-the-bsds-tail-n100) might be used to solve the issue

@ljharb
Copy link
Member

ljharb commented Jul 6, 2016

(linking back to #1121 (comment))

@ljharb ljharb added bugs Oh no, something's broken :-( OS: Solaris labels Jul 6, 2016
@ljharb
Copy link
Member

ljharb commented Jul 6, 2016

How would I convert usages like tail -n +2?

@cy6erskunk
Copy link
Author

I believe tail +2 should work, cannot check it right now

@ljharb
Copy link
Member

ljharb commented Jul 6, 2016

Sadly it doesn't seem to work outside of Solaris :-/ https://travis-ci.org/ljharb/nvm/jobs/142899811#L597

@ljharb
Copy link
Member

ljharb commented Jul 7, 2016

K, I think for the -n +n cases I can just use sed instead.

@ljharb ljharb closed this as completed in 78a008c Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs Oh no, something's broken :-( OS: Solaris
Projects
None yet
Development

No branches or pull requests

2 participants