summaryrefslogtreecommitdiff
path: root/usr/src/cmd/csh/sh.glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/csh/sh.glob.c')
-rw-r--r--usr/src/cmd/csh/sh.glob.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/usr/src/cmd/csh/sh.glob.c b/usr/src/cmd/csh/sh.glob.c
index db0122c0c6..db878615da 100644
--- a/usr/src/cmd/csh/sh.glob.c
+++ b/usr/src/cmd/csh/sh.glob.c
@@ -25,13 +25,18 @@
* C Shell
*/
+static long pargc;
+static long gnleft;
+static long pnleft;
int globcnt;
-
+tchar *arginp;
+static tchar *pargs;
tchar *gpath, *gpathp, *lastgpathp;
int globbed;
bool noglob;
bool nonomatch;
tchar *entp;
+static tchar *pargcp;
tchar **sortbas;
int sortscmp(tchar **, tchar **);
void ginit(tchar **);
@@ -800,12 +805,12 @@ backeval(tchar *cp, bool literal)
HIST = 0;
(void) lex(&paraml);
HIST = oHIST;
- if (err)
- error("%s", gettext(err));
+ if (err_msg)
+ error("%s", gettext(err_msg));
alias(&paraml);
t = syntax(paraml.next, &paraml, 0);
- if (err)
- error("%s", gettext(err));
+ if (err_msg)
+ error("%s", gettext(err_msg));
if (t)
t->t_dflg |= FPAR;
(void) signal(SIGTSTP, SIG_IGN);