$ mail
& help
pi[pe] [[msglist] command]
| [[msglist] command]
& | wc
No value set for "cmd"
& | . wc
668 3413 42967
So it turns out msglist is not optional at all!
So the above nested brackets are misleading.
(info "(mailutils) Displaying Messages")
'pipe [MSGLIST] [SHELL-COMMAND]'
'| [MSGLIST] [SHELL-COMMAND]'
Pipe the contents of specified messages through SHELL-COMMAND. If
SHELL-COMMAND is empty but the string variable 'cmd' is set, the
value of this variable is used as a command name.
Maybe that should be
'| MSGLIST [SHELL-COMMAND]'
_______________________________________________
Bug-mailutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-mailutils