fix error?

This commit is contained in:
SANO Masatoshi 2017-04-21 18:31:34 +09:00
parent f2904bcae8
commit b78068f16b

View file

@ -116,14 +116,14 @@ void proc_cmd(LVal arg,struct proc_opt *popt) {
}
}
sL(list);
}
/* search ros-* command in PATH */
{
char* roscmd=cat("ros-",arg0,NULL);
char* cmd=which(roscmd);
if(strlen(cmd)!=0)
exec_arg(stringlist_array(conss(cmd,rest(arg))));
s(cmd),s(roscmd);
/* search ros-* command in PATH */
{
char* roscmd=cat("ros-",arg0,NULL);
char* cmd=which(roscmd);
if(strlen( cmd)!=0)
exec_arg(stringlist_array(conss(cmd,rest(arg))));
s(cmd),s(roscmd);
}
}
if(p2) {
struct sub_command* fp=firstp(p2);