ash: an unset dynamic variable should not be dynamic
authorRon Yorston <rmy@pobox.com>
Mon, 15 Apr 2019 09:49:35 +0000 (10:49 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 16 Apr 2019 16:29:52 +0000 (18:29 +0200)
commitd96c69d87619e62a88cad1eeda795ac36b417c1c
treedaebd789c3a21eb49f1e3c798291f349b5cb031b
parenta81700bc0810b2cad59d450a380ece20a8eb96a4
ash: an unset dynamic variable should not be dynamic

Commit b28d4c346 (ash: [VAR] Move unsetvar functionality into setvareq)
dropped the code that caused dynamic variables to lose their special
properties when unset.  Add it back again.

function                                             old     new   delta
setvareq                                             346     360     +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 14/0)               Total: 14 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c