Bug 1165754
| Summary: | Backticks in test descriptions cause troubles | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Martin Frodl <mfrodl> |
| Component: | command line | Assignee: | Dan Callaghan <dcallagh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.18 | CC: | aigao, asaha, dcallagh, dowang |
| Target Milestone: | 19.1 | Keywords: | Patch |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-12-17 08:40:21 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Martin Frodl
2014-11-19 15:41:02 UTC
My bad, the quoted line from Makefile would look more like this:
@echo "Description: Test for BZ#1234567 (I ran `rm -rf ~` and everything's gone suddenly)" >> $(METADATA)
Nevertheless, this does not change the point of this bug in the slightest.
beaker-wizard really needs to do shell escaping on the values that it spits out into echo statements. Agreed, and I think we should fix that ASAP. According to <http://www.gnu.org/software/bash/manual/bashref.html#Double-Quotes> the characters with special meaning inside double-quotes are: $ ` \ ! " I would prefer to escape those ones and leave the value in double-quotes, as opposed to just using pipes.quote. The output of pipes.quote is not very pretty (single-quoted, with ' quoted as '"'"') and is not amenable to adding parameter substitutions by hand later if desired. Beaker 19.1 is released. |