newt: add !cmd
parent
9c70c81e70
commit
db46e826c2
|
@ -122,6 +122,7 @@ y synchronize message list with server
|
||||||
" print message in quoted form, suitable for reply
|
" print message in quoted form, suitable for reply
|
||||||
|cmd pipe message body to a command
|
|cmd pipe message body to a command
|
||||||
||cmd pipe raw message to a command
|
||cmd pipe raw message to a command
|
||||||
|
!cmd run a command
|
||||||
? print debug information'
|
? print debug information'
|
||||||
}
|
}
|
||||||
fn np{
|
fn np{
|
||||||
|
@ -294,6 +295,8 @@ while(){
|
||||||
case '|'*
|
case '|'*
|
||||||
cmd=`{echo $"cmd | sed 's/^\|//g'}
|
cmd=`{echo $"cmd | sed 's/^\|//g'}
|
||||||
cat $mnt/$group/^$rposts($post)^/body | eval $cmd
|
cat $mnt/$group/^$rposts($post)^/body | eval $cmd
|
||||||
|
case '!'*
|
||||||
|
eval `{echo $"cmd | sed 's/^\!//g'}
|
||||||
case '?'
|
case '?'
|
||||||
echo editor: $editor
|
echo editor: $editor
|
||||||
echo pager: $pager
|
echo pager: $pager
|
||||||
|
|
|
@ -140,6 +140,9 @@ Run the
|
||||||
.I command
|
.I command
|
||||||
with the whole message as standard input.
|
with the whole message as standard input.
|
||||||
.TP
|
.TP
|
||||||
|
.BI ! command
|
||||||
|
Escape to the shell to do command.
|
||||||
|
.TP
|
||||||
\fB"\fP
|
\fB"\fP
|
||||||
Print the current message in quoted form, suitable for reply.
|
Print the current message in quoted form, suitable for reply.
|
||||||
.PP
|
.PP
|
||||||
|
|
Loading…
Reference in New Issue