From 1f9b6e48c3b9f5826d484b1b80ee43326d99035c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 26 Aug 2007 15:16:55 +0000 Subject: [PATCH] Enabled job control. It doesn't fully work yet, as there's some kernel support missing, but it cures the symptoms of bug #113. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22061 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/bash/Jamfile | 13 ++++++++++++- src/bin/bash/config.h | 4 +++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/bin/bash/Jamfile b/src/bin/bash/Jamfile index cac0977bdc..2dc4313c97 100644 --- a/src/bin/bash/Jamfile +++ b/src/bin/bash/Jamfile @@ -50,15 +50,26 @@ actions MkSignamesExt1 MkSignamesExt signames.h ; +# Haiku supports job control, BeOS doesn't. +local jobControlSources ; +if $(TARGET_PLATFORM_HAIKU_COMPATIBLE) { + jobControlSources = jobs.c ; +} else { + jobControlSources = nojobs.c ; +} + BinCommand sh : parse.y shell.c eval.c general.c make_cmd.c print_cmd.c dispose_cmd.c execute_cmd.c variables.c version.c expr.c copy_cmd.c flags.c subst.c hashcmd.c hashlib.c mailcheck.c - trap.c alias.c nojobs.c braces.c + trap.c alias.c braces.c input.c bashhist.c array.c arrayfunc.c pathexp.c unwind_prot.c bashline.c bracecomp.c error.c list.c stringlib.c locale.c findcmd.c redir.c pcomplete.c pcomplib.c syntax.c xmalloc.c test.c sig.c + + $(jobControlSources) + : libreadline.a libglob.a libbuiltins.a libtilde.a libsh.a libtermcap.a $(TARGET_SELECT_UNAME_ETC_LIB) : bash.rdef ; diff --git a/src/bin/bash/config.h b/src/bin/bash/config.h index d4196307ed..d550bddfb9 100644 --- a/src/bin/bash/config.h +++ b/src/bin/bash/config.h @@ -26,7 +26,9 @@ /* Define JOB_CONTROL if your operating system supports BSD-like job control. */ -/* #undef JOB_CONTROL */ +#if __HAIKU__ +#define JOB_CONTROL 1 +#endif /* Define ALIAS if you want the alias features. */ #define ALIAS 1