mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-28 16:09:51 +02:00
commit bash-20161108 snapshot
This commit is contained in:
@@ -627,8 +627,12 @@ unary_test (op, arg)
|
||||
if (v == 0 && valid_array_reference (arg, 0))
|
||||
{
|
||||
char *t;
|
||||
t = array_value (arg, 0, 0, (int *)0, (arrayind_t *)0);
|
||||
return (t ? TRUE : FALSE);
|
||||
int rtype, ret;
|
||||
t = array_value (arg, 0, 0, &rtype, (arrayind_t *)0);
|
||||
ret = t ? TRUE : FALSE;
|
||||
if (rtype > 0) /* subscript is * or @ */
|
||||
free (t);
|
||||
return ret;
|
||||
}
|
||||
else if (v && invisible_p (v) == 0 && array_p (v))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user