fix: preserve arguments such as --version and -n when running commands over ssh
xargs without a command runs /bin/echo per word, which interprets --version, --help, -n, -e and -E as its own options. Use printf with a NUL delimiter instead. Closes #9120
This commit is contained in:
2 files changed
+9
-1
No files matched your search
@@ -37,6 +37,14 @@ teardown() {
|
||||
assert_success
|
||||
}
|
||||
|
||||
@test "(core) ssh arguments are passed through unchanged" {
|
||||
run ssh "dokku@$DOKKU_DOMAIN" fakecommand --version --help -n -e -E
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_failure
|
||||
assert_output_contains '`fakecommand --version --help -n -e -E` is not a dokku command.'
|
||||
}
|
||||
|
||||
@test "(core) urls (non-ssl)" {
|
||||
assert_urls "http://${TEST_APP}.${DOKKU_DOMAIN}"
|
||||
|
||||
|
||||
Reference in new issue
Block a user