dragonx-cli quoting issues #329

Closed
opened 7 months ago by duke · 1 comments
duke commented 7 months ago
Owner

Sometimes dragonx-cli doesn't work correctly because of shell quoting.

For instance dragonx-cli z_shieldcoinbase "*" zaddr will not work, but hush-cli -ac_name=DRAGONX z_shieldcoinbase "*" zaddr does. This is because dragonx-cli is a shell script which interprets the quotes while hush-cli is a binary that does not. This issue will affect every RPC that requires proper shell quoting, such as z_sendmany.

Sometimes dragonx-cli doesn't work correctly because of shell quoting. For instance `dragonx-cli z_shieldcoinbase "*" zaddr` will not work, but `hush-cli -ac_name=DRAGONX z_shieldcoinbase "*" zaddr` does. This is because dragonx-cli is a shell script which interprets the quotes while hush-cli is a binary that does not. This issue will affect every RPC that requires proper shell quoting, such as z_sendmany.
Poster
Owner

Fixed on latest dev branch by putting double quotes around $@ :

hush-cli -ac_name=DRAGONX "$@"
Fixed on latest dev branch by putting double quotes around `$@` : ``` hush-cli -ac_name=DRAGONX "$@" ```
duke closed this issue 7 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.