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

Fix recent shellcheck-inspired quoting errors. #3092

Merged
merged 4 commits into from
Apr 8, 2019

Conversation

hjoliver
Copy link
Member

@hjoliver hjoliver commented Apr 8, 2019

Revert a few lines of #3068

In several places: remove outer quotes that incorrectly turn a whole bunch of args into a single arg containing spaces.

@kinow - one review will do, since functional tests currently broken by the bug

@oliver-sanders can take a look afterwards to check that I've done the right thing...

@hjoliver hjoliver added this to the cylc-8.0a1 milestone Apr 8, 2019
@hjoliver hjoliver self-assigned this Apr 8, 2019
@hjoliver hjoliver requested a review from kinow April 8, 2019 00:52
@hjoliver
Copy link
Member Author

hjoliver commented Apr 8, 2019

OK now we understand: the spurious quotes were added to satisfy the shellcheck "word splitting" warning, which in this case is wrong. Disabled the warning with a line-specific ignore comment.

@kinow
Copy link
Member

kinow commented Apr 8, 2019

👍 will just wait for Travis-CI to finish running the build. And for the record, here's a useful link @hjoliver posted on Riot about the issue: https://github.com/koalaman/shellcheck/wiki/SC2046#exceptions

@hjoliver hjoliver changed the title Fix recent test-battery command bug. Fix recent shellcheck-inspired quoting errors. Apr 8, 2019
Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

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

Hooray! Time to rebase other pull requests, and let Travis trudge through the build backlog. Thanks @hjoliver !

@kinow kinow merged commit 83ae2f9 into cylc:master Apr 8, 2019
@hjoliver hjoliver deleted the test-b-command-fix branch April 8, 2019 08:24
@oliver-sanders
Copy link
Member

Whoops. Sorry, should have spotted that the tests were silently skipping.

@kinow kinow added the bug Something is wrong :( label May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants