-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix] Reapply shell script parameter passthrough fix #22867 reverted in #22921 #22923
[fix] Reapply shell script parameter passthrough fix #22867 reverted in #22921 #22923
Conversation
…hrough syntax (apache#22867)" (apache#22921)" This reverts commit fa74538.
I hope we get the scripts fixed, at least for master branch. It's clearly a problem to use |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #22923 +/- ##
============================================
+ Coverage 73.57% 74.32% +0.75%
- Complexity 32624 34350 +1726
============================================
Files 1877 1949 +72
Lines 139502 146867 +7365
Branches 15299 16168 +869
============================================
+ Hits 102638 109160 +6522
- Misses 28908 29284 +376
- Partials 7956 8423 +467
Flags with carried forward coverage won't be shown. Click here to find out more. |
This reverts commit fa74538.
Motivation
#22921 reverted the change in #22867 to use correct way of passing parameters in shell scripts.
The correct syntax is
"$@"
.In #22921, the argumentation was that a command
bin/pulsar zookeeper-shell --run-once "ls /ledgers"
no longer works.This type of command has always been invalid for 2 reasons:
bin/pulsar zookeeper-shell
has never supported--run-once
parameter.zk-shell
which supports this syntax.bin/pulsar zookeeper-shell
doesn't usezk-shell
under the covers.bin/pulsar zookeeper-shell
has never supported quoting the arguments to the command. This happened to work because of invalid parameter passing which is fixed by [fix][cli] Fix the shell script parameter passthrough syntax #22867zk-shell
requires the--run-once "ls /path"
syntax.bin/pulsar zookeeper-shell
doesn't usezk-shell
under the covers.Modifications
Documentation
doc
doc-required
doc-not-needed
doc-complete