--- ../bash-3.1/subst.c 2006-01-14 01:12:02.000000000 +0100 +++ subst.c 2006-01-14 01:12:39.000000000 +0100 @@ -5814,7 +5814,7 @@ { t_index++; free (name); - temp1 = string_extract (string, &t_index, "#%:-=?+/}", 0); + temp1 = string_extract (string, &t_index, "#%:-=?+/}", EX_VARNAME); name = (char *)xmalloc (3 + (strlen (temp1))); *name = string[sindex]; if (string[sindex] == '!')