Skip to content

Fix for Solaris10 sh - #212

Merged
bsparrow435 merged 1 commit into
basho:4.0from
kesslerm:fix/solaris10-nodetool-alias
Feb 10, 2017
Merged

Fix for Solaris10 sh#212
bsparrow435 merged 1 commit into
basho:4.0from
kesslerm:fix/solaris10-nodetool-alias

Conversation

@kesslerm

@kesslerm kesslerm commented Feb 9, 2017

Copy link
Copy Markdown
Contributor

Commit 44a4f19 uses $(command) notation
to populate SSL_ARGS. This notation is not supported by Solaris10 sh.

Use backticks instead.

Ksh expands aliases containing '=' differently from bash, but seems
to work fine when an alias is evaluated inside backticks. Call NODETOOL
inside backticks consistently throughout the file.

@kesslerm
kesslerm force-pushed the fix/solaris10-nodetool-alias branch from 80f4e6a to cee23ac Compare February 9, 2017 17:51
Commit 44a4f19 uses $(command) notation
to populate SSL_ARGS. This notation is not supported by Solaris10 sh.

Use backticks instead.

Ksh expands aliases containing '=' differently from bash, but seems
to work fine when an alias is evaluated inside backticks. Call NODETOOL
inside backticks consistently throughout the file.

As other functions depend on ping_node() returning the exit code
from NODETOOL, but CLI users expect to see the stdout output, capture
the exit code before echoing the command output.
@kesslerm
kesslerm force-pushed the fix/solaris10-nodetool-alias branch from cee23ac to 65125b6 Compare February 9, 2017 18:21
@kesslerm kesslerm changed the title Fix for Solaris10 (ksh) Fix for Solaris10 sh Feb 9, 2017
@bsparrow435
bsparrow435 merged commit 83f5944 into basho:4.0 Feb 10, 2017
@kesslerm
kesslerm deleted the fix/solaris10-nodetool-alias branch February 17, 2017 12:30
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.

2 participants