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

vstart.sh: quote command only when necessary #18181

Merged
merged 1 commit into from Oct 24, 2017

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Oct 9, 2017

we quote the command args, so it's easier to copy and paste it to rerun
the command. but it's annoying to read the echod command with the
quotes. so quote them only if the arg has space in it, it'd easier for
eyes.

Signed-off-by: Kefu Chai kchai@redhat.com

we quote the command args, so it's easier to copy and paste it to rerun
the command. but it's annoying to read the echod command with the
quotes. so quote them only if the arg has space in it, it'd easier for
eyes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov tchaikov changed the title vstart.sh quote command only when necessary vstart.sh: quote command only when necessary Oct 9, 2017
@tchaikov tchaikov requested a review from jdurgin October 18, 2017 17:42
@jdurgin jdurgin merged commit df7a694 into ceph:master Oct 24, 2017
prunb() {
printf "'%s' " "$@"; echo '&'
quoted_print $* '&'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be quoted_print "$@" '&'?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@batrick thanks for pointing this out, fixed at #18523

@tchaikov tchaikov deleted the wip-vstart-quoted-print branch October 25, 2017 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants