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

Fix sed usage #247

Merged
merged 2 commits into from
Sep 17, 2015
Merged

Fix sed usage #247

merged 2 commits into from
Sep 17, 2015

Conversation

darxriggs
Copy link
Contributor

No description provided.

* when using sed with -i it's crucial to not put any spaces between -i and SUFFIX
  * good: sed -i.bk ...
  * bad:  sed -i .bk ...
* otherwise this error is shown when using GNU sed 4.2.2:
  sed: -e expression elastic#1, char 1: unknown command: `.'
* this is already down in other places in Makefile
@tsg
Copy link
Contributor

tsg commented Sep 16, 2015

LGTM, but I'm curious, on which OS didn't the previous version (with space) work?

@darxriggs
Copy link
Contributor Author

It didn't work on Ubuntu 14.04 LTS. The used sed is GNU sed 4.2.2 (as mentioned in the commit).

I also found a commit of yours cb72d3a. Looks like you already faced this issue and fixed it in one occasion.

Btw, do you really want to create backup files? Most of the time they are just deleted right afterwards. (The suffix after -i is optional.)

@tsg tsg mentioned this pull request Sep 17, 2015
@ruflin ruflin merged commit 1465246 into elastic:master Sep 17, 2015
@tsg
Copy link
Contributor

tsg commented Sep 17, 2015

This was merged. The missing -i suffix doesn't seem to work on OS X :-(, which is from where we normally call make gen.

@darxriggs darxriggs deleted the fix-sed-usage branch September 17, 2015 09:11
tsg added a commit that referenced this pull request Dec 2, 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

Successfully merging this pull request may close these issues.

3 participants