Adjusted paths to new locations.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7862 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -35,7 +35,7 @@ main()
|
|||||||
{
|
{
|
||||||
team_id pid;
|
team_id pid;
|
||||||
|
|
||||||
pid = _kern_create_team("/boot/bin/fortune", "/boot/bin/fortune", NULL, 0, NULL, 0, 5);
|
pid = _kern_create_team("/bin/fortune", "/bin/fortune", NULL, 0, NULL, 0, 5);
|
||||||
if (pid >= 0) {
|
if (pid >= 0) {
|
||||||
int retcode;
|
int retcode;
|
||||||
_kern_wait_for_team(pid, &retcode);
|
_kern_wait_for_team(pid, &retcode);
|
||||||
@@ -46,7 +46,7 @@ main()
|
|||||||
while (1) {
|
while (1) {
|
||||||
team_id pid;
|
team_id pid;
|
||||||
|
|
||||||
pid = _kern_create_team("/boot/bin/shell", "/boot/bin/shell", NULL, 0, NULL, 0, 5);
|
pid = _kern_create_team("/bin/shell", "/bin/shell", NULL, 0, NULL, 0, 5);
|
||||||
if (pid >= 0) {
|
if (pid >= 0) {
|
||||||
int retcode;
|
int retcode;
|
||||||
printf("init: spawned shell, pid 0x%lx\n", pid);
|
printf("init: spawned shell, pid 0x%lx\n", pid);
|
||||||
|
|||||||
@@ -709,42 +709,32 @@ int parse_info(scan_info *info)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SVO_EXIT :
|
case SVO_EXIT :
|
||||||
if(scan(info)){
|
if (scan(info))
|
||||||
|
|
||||||
err = SHE_SCAN_ERROR;
|
err = SHE_SCAN_ERROR;
|
||||||
|
else
|
||||||
} else {
|
|
||||||
|
|
||||||
err = handle_exit(info);
|
err = handle_exit(info);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return shell_parse(info->input_line,strlen(info->input_line));
|
return shell_parse(info->input_line, strlen(info->input_line));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(err != SHE_NO_ERROR){
|
if (err != SHE_NO_ERROR) {
|
||||||
|
if (err == SHE_SCAN_ERROR)
|
||||||
if(err == SHE_SCAN_ERROR) err = info->scan_error;
|
err = info->scan_error;
|
||||||
ste_error_to_str(err,err_txt);
|
ste_error_to_str(err, err_txt);
|
||||||
printf("error :%d:%ld, %d-%s \n",info->line_no,
|
printf("error :%d:%ld, %d-%s \n", info->line_no,
|
||||||
info->scanner - info->input_line - strlen(info->token),
|
info->scanner - info->input_line - strlen(info->token),
|
||||||
err,
|
err, err_txt);
|
||||||
err_txt);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
void init_statements(void){
|
init_statements(void)
|
||||||
|
{
|
||||||
shell_var_set_text(NAME_VAR_PATH,".:/:/boot:/boot/bin");
|
shell_var_set_text(NAME_VAR_PATH, ".:/:/boot:/boot/bin:/boot/beos/bin");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user