aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c5
-rw-r--r--shell/hush.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 224d77633..58999fac5 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -7704,8 +7704,9 @@ static int
7704patmatch(char *pattern, const char *string) 7704patmatch(char *pattern, const char *string)
7705{ 7705{
7706 char *p = preglob(pattern, 0); 7706 char *p = preglob(pattern, 0);
7707 //bb_error_msg("fnmatch(pattern:'%s',str:'%s')", p, string); 7707 int r = pmatch(p, string);
7708 return pmatch(p, string); 7708 //bb_error_msg("!fnmatch(pattern:'%s',str:'%s',0):%d", p, string, r);
7709 return r;
7709} 7710}
7710 7711
7711/* 7712/*
diff --git a/shell/hush.c b/shell/hush.c
index 517b8c109..42f95ef6b 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -9948,7 +9948,7 @@ Test that VAR is a valid variable name?
9948 c = '?'; 9948 c = '?';
9949 } 9949 }
9950 9950
9951 /* Set OPTIND */ 9951 /* Set VAR and OPTIND */
9952 cbuf[0] = c; 9952 cbuf[0] = c;
9953 set_local_var_from_halves(var, cbuf); 9953 set_local_var_from_halves(var, cbuf);
9954 set_local_var_from_halves("OPTIND", utoa(optind)); 9954 set_local_var_from_halves("OPTIND", utoa(optind));