Lines Matching refs:p2
1116 const char *p, *p2, *q;
1138 p2 = connected ? remotecwd : "";
1145 q = p2;
1146 while (*p2) /* calc # of /'s */
1147 if (*p2++ == '/')
1162 while ((p2 > q) && (*p2 != '/'))
1163 p2--; /* back up */
1164 if (skip && p2 > q)
1165 p2--;
1167 if (*p2 == '/' && p2 != q)
1168 p2++;
1189 for (; *p2; p2++)
1190 ADDBUF(*p2);
1195 for (p2 = connected && hostname ? hostname : "-";
1196 *p2 ; p2++) {
1197 if (op == 'm' && *p2 == '.')
1199 ADDBUF(*p2);
1204 for (p2 = connected ? username : "-"; *p2 ; p2++)
1205 ADDBUF(*p2);