Skip to content

Fix edit - #7135

Merged
openshift-bot merged 2 commits into
openshift:masterfrom
deads2k:fix-edit
Feb 9, 2016
Merged

openshift-bot merged 2 commits into
openshift:masterfrom
deads2k:fix-edit

Conversation

@deads2k

@deads2k deads2k commented Feb 8, 2016

Copy link
Copy Markdown
Contributor

Fixes #7085 and adds necessary but insufficient code for #7090 .
Fixes #7147

@Kargakis This picks one of your pulls too. They help, but don't eliminate our problems. I'll have to have a go at lists separately to keep us from regressing.

@0xmichalis

Copy link
Copy Markdown
Contributor

Tested it and it works fine. LGTM but Clayton asked for tests using sed

@deads2k

deads2k commented Feb 9, 2016

Copy link
Copy Markdown
Contributor Author

Tested it and it works fine. LGTM but Clayton asked for tests using sed

@liggitt @smarterclayton sed on mac OS is non-compatible isn't it? That whole -i and -i, right? I don't think I can call the wrapper function from a subshell doing an exec. How about the precious snowflakes that are mac users sort out how to write the test? :)

@deads2k

deads2k commented Feb 9, 2016

Copy link
Copy Markdown
Contributor Author

[merge]

@deads2k

deads2k commented Feb 9, 2016

Copy link
Copy Markdown
Contributor Author

opened #7151 for @liggitt to figure out. sed -i is incompatible.

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4901/) (Image: devenv-rhel7_3372)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 09721a3

@openshift-bot

Copy link
Copy Markdown
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 09721a3

@csrwng

csrwng commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

sed -i seems to work fine on my Mac

@deads2k

deads2k commented Feb 9, 2016

Copy link
Copy Markdown
Contributor Author

sed -i seems to work fine on my Mac

With or without a space? I've been reverted a lot, I have no way to actually test it, and I'm not sure of exactly how the command array is build or parsed on mac os.

@csrwng

csrwng commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

So this works (and I guess yes, you need to have some argument to -i)

sed -e "s/foo/bar" -i "" somefile

@openshift-bot

Copy link
Copy Markdown
Contributor

@0xmichalis

Copy link
Copy Markdown
Contributor

let's move the discussion in #7151

openshift-bot pushed a commit that referenced this pull request Feb 9, 2016
@openshift-bot
openshift-bot merged commit 4d1c1ba into openshift:master Feb 9, 2016
@smarterclayton

Copy link
Copy Markdown
Contributor

We have os::util::sed for a reason

On Tue, Feb 9, 2016 at 12:21 PM, OpenShift Bot [email protected]
wrote:

Merged #7135 #7135.

—
Reply to this email directly or view it on GitHub
#7135 (comment).

@liggitt

liggitt commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

can't do export EDITOR="os::util::sed", can you?

@smarterclayton

Copy link
Copy Markdown
Contributor

Can't, but it has the right pattern.

On Tue, Feb 9, 2016 at 1:13 PM, Jordan Liggitt [email protected]
wrote:

can't do export EDITOR="os::util::sed", can you?

—
Reply to this email directly or view it on GitHub
#7135 (comment).

@smarterclayton

Copy link
Copy Markdown
Contributor

Actually... you can export that function I think to the subshell.

On Tue, Feb 9, 2016 at 1:32 PM, Clayton Coleman [email protected] wrote:

Can't, but it has the right pattern.

On Tue, Feb 9, 2016 at 1:13 PM, Jordan Liggitt [email protected]
wrote:

can't do export EDITOR="os::util::sed", can you?

—
Reply to this email directly or view it on GitHub
#7135 (comment).

@smarterclayton

smarterclayton commented Feb 9, 2016 via email

Copy link
Copy Markdown
Contributor

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.

6 participants