From b89c144344523f662d1eef8e9a7c92a9833dfa2f Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 2 Jul 2011 17:57:02 +0000 Subject: [PATCH] fix vstrchr like use of cstrchr --- eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eval.c b/eval.c index a8f2d59..e8097bc 100644 --- a/eval.c +++ b/eval.c @@ -22,7 +22,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.105 2011/06/12 14:45:33 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.106 2011/07/02 17:57:02 tg Exp $"); /* * string expansion @@ -1181,7 +1181,7 @@ varsub(Expand *xp, const char *sp, const char *word, if (*sp == '!' && sp[1]) { ++sp; xp->var = global(sp); - if (cstrchr(sp, '[')) { + if (vstrchr(sp, '[')) { if (xp->var->flag & ISSET) xp->str = shf_smprintf("%lu", arrayindex(xp->var));