-/* $OpenBSD: exec.c,v 1.58 2015/10/17 18:26:24 mmcc Exp $ */
+/* $OpenBSD: exec.c,v 1.59 2015/10/17 18:43:22 mmcc Exp $ */
/*
* execute command tree
{
char *shell;
- shell = str_val(global(EXECSHELL_STR));
+ shell = str_val(global("EXECSHELL"));
if (shell && *shell)
shell = search(shell, path, X_OK, NULL);
if (!shell || !*shell)
- shell = EXECSHELL;
+ shell = _PATH_BSHELL;
*tp->args-- = tp->str;
*tp->args = shell;
-/* $OpenBSD: sh.h,v 1.38 2015/10/17 18:26:24 mmcc Exp $ */
+/* $OpenBSD: sh.h,v 1.39 2015/10/17 18:43:22 mmcc Exp $ */
/*
* Public Domain Bourne/Korn shell
# define EXTERN_DEFINED
#endif
-#define EXECSHELL _PATH_BSHELL
-#define EXECSHELL_STR "EXECSHELL"
-
#define NELEM(a) (sizeof(a) / sizeof((a)[0]))
#define sizeofN(type, n) (sizeof(type) * (n))
#define BIT(i) (1<<(i)) /* define bit in flag */