Discipline function "get" results mangled
Bug #574880 reported by
Dennis Williamson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ksh (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ksh
When a "get" discipline function sets a string value with a space in it and the associated variable is accessed without quoting, the result is not as expected.
for example, this:
string.get() { .sh.value="ab cdefgh"; }; echo $string "$string"
produces this:
ab cdcdcd ab cdefgh
but it should be this:
ab cdefgh ab cdefgh
In contrast, this works correctly and as expected:
var="ab cdefgh"; echo $var "$var"
ksh Version JM 93t+ 2009-05-01 (93t+-2)
Ubuntu 9.10
To post a comment you must log in.
Thank you for taking the time to report this bug. We have tried to recreate this on the latest release of Ubuntu, but cannot reproduce it. This bug is being marked as Invalid. If you believe the problem to still exist in the latest version of Ubuntu, please comment on why that is the case and change the bug status to NEW.