Ticket #1049: args_expand.patch
| File args_expand.patch, 686 bytes (added by , 18 years ago) |
|---|
-
command.c
3058 3058 } 3059 3059 break; 3060 3060 3061 case MP_CMD_RUN: 3061 case MP_CMD_RUN:{ 3062 3062 #ifndef __MINGW32__ 3063 if (!fork()) { 3064 execl("/bin/sh", "sh", "-c", cmd->args[0].v.s, NULL); 3065 exit(0); 3063 char *txt = NULL; 3064 txt = m_properties_expand_string(mp_properties, cmd->args[0].v.s, mpctx); 3065 if(txt) { 3066 if (!fork()) { 3067 execl("/bin/sh", "sh", "-c", txt, NULL); 3068 exit(0); 3069 }else{ 3070 free(txt); 3071 } 3072 } 3073 #endif 3066 3074 } 3067 #endif3068 3075 break; 3069 3076 3070 3077 case MP_CMD_KEYDOWN_EVENTS:
