diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-08-27 09:51:21 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-08-27 09:51:21 +0000 |
commit | ded841840b473842a49f4f3627f488ca323d05b1 (patch) | |
tree | 77ccc600bba3b9f794dbb7a689416d950b16725e /curs_lib.c | |
parent | 805fcf41165c20f8b38ad76e8518114f9b976117 (diff) |
[patch-0.94.4i.tlr.shell_quote.1] Try to quote file name
arguments and the like for shell commands.
Diffstat (limited to 'curs_lib.c')
-rw-r--r-- | curs_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -113,7 +113,7 @@ void mutt_clear_error (void) void mutt_edit_file (const char *editor, const char *data) { char cmd[LONG_STRING]; - + endwin (); mutt_expand_fmt (cmd, sizeof (cmd), editor, data); mutt_system (cmd); @@ -271,7 +271,7 @@ int mutt_do_pager (const char *banner, pager_t *info) { int rc; - + if (!Pager || strcmp (Pager, "builtin") == 0) rc = mutt_pager (banner, tempfile, do_color, info, ""); else @@ -279,7 +279,7 @@ int mutt_do_pager (const char *banner, char cmd[STRING]; endwin (); - snprintf (cmd, sizeof (cmd), "%s %s", NONULL(Pager), tempfile); + mutt_expand_fmt (cmd, sizeof(cmd), Pager, tempfile); mutt_system (cmd); mutt_unlink (tempfile); rc = 0; |