mirror of
https://github.com/roswell/roswell.git
synced 2026-09-10 07:16:17 -04:00
fix error?
This commit is contained in:
parent
f2904bcae8
commit
b78068f16b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue