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:
Axel Dörfler 2004-06-08 21:15:16 +00:00
parent 5fce212779
commit 0b57ed842f
2 changed files with 16 additions and 26 deletions

View File

@ -35,7 +35,7 @@ main()
{
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) {
int retcode;
_kern_wait_for_team(pid, &retcode);
@ -46,7 +46,7 @@ main()
while (1) {
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) {
int retcode;
printf("init: spawned shell, pid 0x%lx\n", pid);

View File

@ -709,42 +709,32 @@ int parse_info(scan_info *info)
break;
case SVO_EXIT :
if(scan(info)){
if (scan(info))
err = SHE_SCAN_ERROR;
} else {
else
err = handle_exit(info);
}
break;
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_SCAN_ERROR) err = info->scan_error;
ste_error_to_str(err,err_txt);
printf("error :%d:%ld, %d-%s \n",info->line_no,
info->scanner - info->input_line - strlen(info->token),
err,
err_txt);
if (err != SHE_NO_ERROR) {
if (err == SHE_SCAN_ERROR)
err = info->scan_error;
ste_error_to_str(err, err_txt);
printf("error :%d:%ld, %d-%s \n", info->line_no,
info->scanner - info->input_line - strlen(info->token),
err, err_txt);
}
return err;
}
void init_statements(void){
shell_var_set_text(NAME_VAR_PATH,".:/:/boot:/boot/bin");
void
init_statements(void)
{
shell_var_set_text(NAME_VAR_PATH, ".:/:/boot:/boot/bin:/boot/beos/bin");
}