From 63e7895905a1cc31c5b6881b4738cd04217adbc1 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Thu, 8 Oct 2020 19:43:19 +0200
Subject: Let the caller decide how to launch helpers
In the end, we don't need to impose any policy on it,
and it removes a level of quoting, as well as an `eval`.
---
README.adoc | 8 ++++----
sdn.cpp | 3 +--
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/README.adoc b/README.adoc
index 103078c..de865de 100644
--- a/README.adoc
+++ b/README.adoc
@@ -64,7 +64,7 @@ sdn-navigate () {
# helpers after the terminal has been resized while running sdn
command true
- eval "exec /dev/tty 2>&1" }
+ local:posix = [cmd]{ /bin/sh -c $cmd /dev/tty 2>&1 }
# XXX: the -dot is not a stable API, and may hence break soon
local:buffer = $edit:current-command
diff --git a/sdn.cpp b/sdn.cpp
index fdbb1f7..ff1e397 100644
--- a/sdn.cpp
+++ b/sdn.cpp
@@ -861,8 +861,7 @@ fun run_program (initializer_list