From 92455d077c77aabd570b60f76de4d65e0efadbd2 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 19 Oct 2020 23:59:18 -0400 Subject: [PATCH] ed: Fix `e` script when no rlwrap present I seem to have missed the argument-passing here. Made for a confusing roundabout on my new alpine linux VM: $ e `which e` ? f ? h no filename Yikes! --- bin/e | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/e b/bin/e index 68bfee2..da3b2eb 100755 --- a/bin/e +++ b/bin/e @@ -5,7 +5,7 @@ set -e # short circuit fallback to ed(1) if no rlwrap present if ! command -v rlwrap >/dev/null; then echo "warning: rlwrap not found, falling back to regular ed" 1>&2 - exec ed + exec ed -p'> ' "$@" fi for f in .tags tags; do -- libgit2 0.28.4