Bug 1248418
Summary: | "scl enable" strips double quotes in command arguments | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Dominic Cleal <dcleal> |
Component: | scl-utils | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 8.1 | CC: | dmach, drieden, ekohlvan, inseo.park, lzachar, mdomonko, pmoravco |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-12-11 15:52:02 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: | |||
Bug Depends On: | 1681083 | ||
Bug Blocks: |
Description
Dominic Cleal
2015-07-30 09:06:04 UTC
While this is a valid issue and we should indeed wrap the arguments in single quotes instead of double quotes (and escape any inner single quotes), changing the code at this point could break existing scripts that rely on the current behavior for one reason or another. As an example, consider the following command: # scl enable <collection> -- echo '$PATH' Currently, this would internally translate into calling echo "$PATH" and thus printing the $PATH value as configured within the collection environment. If we changed the code so that single quotes were used instead, we would translate the arguments into echo '$PATH' and thus print the literal $PATH string. I don't think it's really worth the risk at this point (and this request is a few years old anyway), so I'm closing it now. There surely is a way (yet a bit hacky, admittedly) to achieve the desired result, by escaping the double quotes like this: # scl enable <collection> -- echo '[\"hello\"]' ["hello"] *** Bug 1826600 has been marked as a duplicate of this bug. *** |