head 1.1; access; symbols pkgsrc-2026Q2:1.1.0.8 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.6 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.4 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.2 pkgsrc-2025Q3-base:1.1; locks; strict; comment @# @; 1.1 date 2025.07.16.19.35.28; author schmonz; state Exp; branches; next ; commitid dc4Eo56sfRVht03G; desc @@ 1.1 log @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 > .) @ text @$NetBSD$ Use pkgsrc-provided libs. --- Makefile.orig 2020-11-01 11:13:37.000000000 +0000 +++ Makefile @@@@ -1,14 +1,14 @@@@ CC ?= gcc CFLAGS ?= -Wall -Wextra -O2 -LIBS ?= -lexecline -lskarnet +LIBS ?= -lexecline -lskarnet -llinenoise -SOURCES := execshell.c linenoise/linenoise.c linenoise/encodings/utf8.c +SOURCES := execshell.c # linenoise/linenoise.c linenoise/encodings/utf8.c .PHONY: all clean all: - $(CC) $(CFLAGS) -o execshell $(SOURCES) $(LIBS) + $(CC) $(CFLAGS) -o execshell $(SOURCES) $(LDFLAGS) $(LIBS) clean: rm -f execshell @