Commit 08d8bd1b 08d8bd1bf9226a2c1384acee80e74059da828285 by Sergey Poznyakoff

Bugfix in mh_whatnow

1 parent 4e7f5b5c
...@@ -420,10 +420,12 @@ edit (struct mh_whatnow_env *wh, int argc, char **argv, int *whs) ...@@ -420,10 +420,12 @@ edit (struct mh_whatnow_env *wh, int argc, char **argv, int *whs)
420 { 420 {
421 struct mu_wordsplit ws; 421 struct mu_wordsplit ws;
422 extern char **environ; 422 extern char **environ;
423 ws.ws_env = (char const **)environ;
423 if (mu_wordsplit (ed, &ws, 424 if (mu_wordsplit (ed, &ws,
424 MU_WRDSF_QUOTE 425 MU_WRDSF_QUOTE
425 | MU_WRDSF_SQUEEZE_DELIMS 426 | MU_WRDSF_SQUEEZE_DELIMS
426 | MU_WRDSF_ENV)) 427 | MU_WRDSF_ENV
428 | MU_WRDSF_NOCMD))
427 { 429 {
428 mu_error (_("cannot split line `%s': %s"), ed, 430 mu_error (_("cannot split line `%s': %s"), ed,
429 mu_wordsplit_strerror (&ws)); 431 mu_wordsplit_strerror (&ws));
......