File:
[cvs.NetBSD.org] /
pkgsrc /
shells /
execshell /
patches /
patch-execshell.c
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Wed Jul 16 19:35:28 2025 UTC (16 months ago) by
schmonz
Branches:
MAIN
CVS tags:
pkgsrc-2026Q3-base,
pkgsrc-2026Q3,
pkgsrc-2026Q2-base,
pkgsrc-2026Q2,
pkgsrc-2026Q1-base,
pkgsrc-2026Q1,
pkgsrc-2025Q4-base,
pkgsrc-2025Q4,
pkgsrc-2025Q3-base,
pkgsrc-2025Q3,
HEAD
Add execshell: Proof of concept execline REPL
This is a proof-of-concept interactive REPL for Laurent Bercot's
execline language. execshell provides an interactive interface with
readline/Emacs-alike line editing to the command lexer used by the
execlineb script launcher. For example:
$ ./execshell
> foreground { echo foo } echo bar
foo
bar
> pipeline { echo baz } sed -e "s/a/u/" -e "s/$/z/"
buzz
(Note that the prompt string here is > .)
$NetBSD: patch-execshell.c,v 1.1 2025/07/16 19:35:28 schmonz Exp $
Use pkgsrc linenoise.
--- execshell.c.orig 2025-07-16 19:21:15.162568036 +0000
+++ execshell.c
@@ -16,8 +16,9 @@
#include <execline/execline.h>
#define UTF8
+#undef UTF8
-#include "linenoise/linenoise.h"
+#include <linenoise.h>
#ifdef UTF8
#include "linenoise/encodings/utf8.h"
#endif
CVSweb <webmaster@jp.NetBSD.org>