From db46e826c23973ee2cdc93a2fcbe465fc022d0ff Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Sun, 28 May 2017 15:45:07 -0400 Subject: newt: add !cmd --- rc/bin/newt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc') diff --git a/rc/bin/newt b/rc/bin/newt index 25b0ecaec..2574e38b3 100755 --- a/rc/bin/newt +++ b/rc/bin/newt @@ -122,6 +122,7 @@ y synchronize message list with server " print message in quoted form, suitable for reply |cmd pipe message body to a command ||cmd pipe raw message to a command +!cmd run a command ? print debug information' } fn np{ @@ -294,6 +295,8 @@ while(){ case '|'* cmd=`{echo $"cmd | sed 's/^\|//g'} cat $mnt/$group/^$rposts($post)^/body | eval $cmd + case '!'* + eval `{echo $"cmd | sed 's/^\!//g'} case '?' echo editor: $editor echo pager: $pager -- cgit v1.2.3