* user.c (execute_menu_command): Put /bin/sh in the beginning of

the script.
This commit is contained in:
Pavel Roskin 2004-01-23 17:33:36 +00:00
parent a8261b28d6
commit 9fe5ee23c9
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-01-23 Andrew V. Samoilov <sav@bcs.zp.ua>
* user.c (execute_menu_command): Put /bin/sh in the beginning of
the script.
2004-01-22 Pavel Roskin <proski@gnu.org> 2004-01-22 Pavel Roskin <proski@gnu.org>
* screen.c (display_mini_info): Correctly fill the space after * screen.c (display_mini_info): Correctly fill the space after

View File

@ -568,6 +568,7 @@ execute_menu_command (WEdit *edit_widget, const char *commands)
return; return;
} }
cmd_file = fdopen (cmd_file_fd, "w"); cmd_file = fdopen (cmd_file_fd, "w");
fputs ("#! /bin/sh\n", cmd_file);
commands++; commands++;
for (col = 0; *commands; commands++){ for (col = 0; *commands; commands++){