char **
htsstr_argsplit(const char *str) {
int quote = 0;
+ int quote_inbetween = 0; // when quote isn't start of argument
int inarg = 0;
const char *start = NULL;
const char *s;
break;
case '"':
if(quote) {
- inarg = 0;
quote = 0;
if (start) {
htsstr_argsplit_add(&argv, &argc, start, s);
start = NULL;
}
+ } else if (quote_inbetween) {
+ quote_inbetween = 0;
+ } else {
+ quote_inbetween = 1;
}
break;
case ' ':
- if(quote)
+ if(quote||quote_inbetween)
break;
inarg = 0;
if (start) {
"sh -c \"/bin/df -P -h /recordings >/config/.markers/recording-pre-process\"",
"bash -c '/bin/df -P -h /recordings >/config/.markers/recording-pre-process'",
"bash -c \"/bin/df -P -h /recordings | tee /config/.markers/recording-pre-process\"",
+ "/bin/grep --label=\"TVHeadend Recording\" \"start time\"",
+ "/bin/grep --label=\"TVHeadend Recordings \"File \"start time\" /recordings",
NULL,
};
char **s = strings, **x;