version 1.43, 2003/03/31 23:04:07 |
version 1.44, 2003/04/05 17:19:47 |
|
|
else |
else |
comret = command("TYPE %s", p->t_mode); |
comret = command("TYPE %s", p->t_mode); |
if (comret == COMPLETE) { |
if (comret == COMPLETE) { |
(void)strcpy(typename, p->t_name); |
(void)strlcpy(typename, p->t_name, sizeof typename); |
curtype = type = p->t_type; |
curtype = type = p->t_type; |
} |
} |
} |
} |
|
|
p = getenv("PAGER"); |
p = getenv("PAGER"); |
if (p == NULL || (*p == '\0')) |
if (p == NULL || (*p == '\0')) |
p = PAGER; |
p = PAGER; |
if ((pager = malloc(strlen(p) + 2)) == NULL) |
if (asprintf(&pager, "|%s", p) == -1) |
errx(1, "Can't allocate memory for $PAGER"); |
errx(1, "Can't allocate memory for $PAGER"); |
(void)sprintf(pager, "|%s", p); |
|
|
|
orestart_point = restart_point; |
orestart_point = restart_point; |
ohash = hash; |
ohash = hash; |