Discipline function "get" results mangled

Bug #574880 reported by Dennis Williamson
6
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

Revision history for this message
Anuradha Weeraman (aweeraman) wrote :

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.

Changed in ksh (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.