bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unset leaves array in inconsistent state


From: Craig Lawson
Subject: unset leaves array in inconsistent state
Date: Wed, 25 Dec 2002 14:25:32 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01

According to the bash documentation, "unset NAME[SUBSCRIPT]" destroys an array element. However, the documentation is not clear on whether elements NAME[SUBSCRIPT] are shifted down. What actually happens is that the array length is decremented and the elements are NOT shifted. With the current behavior, it is cumbersome to deal with arrays with unset elements.

For an exhausting discussion, please see Red Hat bug report #62427 (at "http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62427";).

Sincerely,
Craig.
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]