-/* $OpenBSD: c_sh.c,v 1.60 2017/07/22 09:37:21 anton Exp $ */
+/* $OpenBSD: c_sh.c,v 1.61 2017/12/07 01:54:33 tb Exp $ */
/*
* built-in Bourne commands
/* set prompt in case this is
* called from .profile or $ENV
*/
- set_prompt(PS2, NULL);
+ set_prompt(PS2);
pprompt(prompt, 0);
}
} else if (c != EOF)
-/* $OpenBSD: lex.c,v 1.71 2017/07/04 11:46:15 anton Exp $ */
+/* $OpenBSD: lex.c,v 1.72 2017/12/07 01:54:33 tb Exp $ */
/*
* lexical analysis and source input
#endif /* HISTORY */
}
if (interactive)
- set_prompt(PS2, NULL);
+ set_prompt(PS2);
}
static char *
}
void
-set_prompt(int to, Source *s)
+set_prompt(int to)
{
char *ps1;
Area *saved_atemp;
-/* $OpenBSD: lex.h,v 1.16 2015/10/10 07:35:16 nicm Exp $ */
+/* $OpenBSD: lex.h,v 1.17 2017/12/07 01:54:33 tb Exp $ */
/*
* Source input, lexer and parser
void yyerror(const char *, ...)
__attribute__((__noreturn__, __format__ (printf, 1, 2)));
Source * pushs(int, Area *);
-void set_prompt(int, Source *);
+void set_prompt(int);
void pprompt(const char *, int);
-/* $OpenBSD: main.c,v 1.83 2017/08/11 23:10:55 guenther Exp $ */
+/* $OpenBSD: main.c,v 1.84 2017/12/07 01:54:33 tb Exp $ */
/*
* startup, main loop, environments and error handling
got_sigwinch = 1;
j_notify();
mcheck();
- set_prompt(PS1, s);
+ set_prompt(PS1);
}
t = compile(s);