summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2017-06-08 00:07:41 +0300
committerSergey Poznyakoff <gray@gnu.org>2017-06-08 00:07:41 +0300
commit08d8bd1bf9226a2c1384acee80e74059da828285 (patch)
treec8fac6e5e2edc442130ccb5120ce8a179ac6a671
parent4e7f5b5c08095818d7876a86ad6657c57c9a8ad1 (diff)
downloadmailutils-08d8bd1bf9226a2c1384acee80e74059da828285.tar.gz
mailutils-08d8bd1bf9226a2c1384acee80e74059da828285.tar.bz2
Bugfix in mh_whatnow
-rw-r--r--mh/mh_whatnow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mh/mh_whatnow.c b/mh/mh_whatnow.c
index 999116f2f..71b6b221c 100644
--- a/mh/mh_whatnow.c
+++ b/mh/mh_whatnow.c
@@ -420,10 +420,12 @@ edit (struct mh_whatnow_env *wh, int argc, char **argv, int *whs)
{
struct mu_wordsplit ws;
extern char **environ;
+ ws.ws_env = (char const **)environ;
if (mu_wordsplit (ed, &ws,
MU_WRDSF_QUOTE
| MU_WRDSF_SQUEEZE_DELIMS
- | MU_WRDSF_ENV))
+ | MU_WRDSF_ENV
+ | MU_WRDSF_NOCMD))
{
mu_error (_("cannot split line `%s': %s"), ed,
mu_wordsplit_strerror (&ws));

Return to:

Send suggestions and report system problems to the System administrator.