ash: expr -e support

This commit is contained in:
David van Moolenbroek
2010-06-16 09:33:11 +00:00
parent 482afb8a6f
commit 0964b221e7
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -279,6 +279,9 @@ expr_operator(op, sp, fs)
sp->u.num = expr_is_false(sp);
sp->type = BOOLEAN;
break;
case EXISTS:
if (fs->rcode >= 0) goto true;
goto false;
case ISREAD:
i = 04;
goto permission;