Sounds good.
It might be nice to determine if these two variables should be one,
ie. tied together better.
> Hello tech@,
>
> On monday I was playing with the build environment of PHP and all of a
> sudden I couldn't finish the command because the command buffer was
> full, so I was forced to use bash to finish what I set out to do. Of
> course I'd rather stay on ksh, so here's a patch (guided by anton@)
> which increases the buffer sizes of ksh.
>
> I've been running this full time @$DAYJOB for two days with the S
> malloc option enabled and just did a full system reboot with the
> whole malloc.conf shebang without any issues.
>
> OK?
>
> martijn@
>
> Index: sh.h
> ===================================================================
> RCS file: /cvs/src/bin/ksh/sh.h,v
> retrieving revision 1.58
> diff -u -p -r1.58 sh.h
> --- sh.h 8 Sep 2016 15:50:50 -0000 1.58
> +++ sh.h 28 Jun 2017 16:47:44 -0000
> @@ -32,7 +32,7 @@
> #define MAGIC (7) /* prefix for *?[!{,} during expand */
> #define ISMAGIC(c) ((unsigned char)(c) == MAGIC)
>
> -#define LINE 2048 /* input line size */
> +#define LINE 4096 /* input line size */
> #define PATH 1024 /* pathname size (todo:
> PATH_MAX/pathconf()) */
>
> extern const char *kshname; /* $0 */
> Index: vi.c
> ===================================================================
> RCS file: /cvs/src/bin/ksh/vi.c,v
> retrieving revision 1.47
> diff -u -p -r1.47 vi.c
> --- vi.c 31 May 2017 20:18:43 -0000 1.47
> +++ vi.c 28 Jun 2017 16:47:44 -0000
> @@ -18,7 +18,7 @@
> #include "sh.h"
> #include "edit.h"
>
> -#define CMDLEN 2048
> +#define CMDLEN 4096
> #define CTRL(c) (c & 0x1f)
>
> struct edstate {
>