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

add execv #3

Merged
merged 1 commit into from Jun 25, 2014
Merged

add execv #3

merged 1 commit into from Jun 25, 2014

Conversation

@johnlaing
Copy link
Contributor

@johnlaing johnlaing commented Jun 25, 2014

[ If I tag @armstrtw here, will he get notified? ]

This patch solves Whit's problem as reported here: http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2014-June/007766.html

Example:

> redis$exec("SMEMBERS hats")
list()
> redis$exec("SADD hats 'big hat'") ## quoting doesn't work
[1] 2
> redis$exec("SMEMBERS hats")
[[1]]
[1] "hat'"

[[2]]
[1] "'big"

> redis$execv(c("SADD", "hats", "little hat")) ## vectorizing does work
[1] 1
> redis$exec("SMEMBERS hats")
[[1]]
[1] "little hat"

[[2]]
[1] "hat'"

[[3]]
[1] "'big"
eddelbuettel added a commit that referenced this pull request Jun 25, 2014
add execv

Thanks a lot for this!  I started to realize that Redis was doing the 'splitting by whitespace' so we did indeed need a different entry point.  So thanks for adding it!
@eddelbuettel eddelbuettel merged commit 546d26a into eddelbuettel:master Jun 25, 2014
1 check passed
1 check passed
continuous-integration/travis-ci The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.