Bugfix in mh_whatnow
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -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)); | ... | ... |
-
Please register or sign in to post a comment