Lines Matching refs:to
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
67 /* Move string from ``from'' to ``to'', interpreting ``~'' and $.... */
69 InterpretArg(const char *from, char *to)
78 startto = to;
79 endto = to + LINE_LEN - 1;
88 *to++ = *from++;
97 *to++ = '\\'; /* Pass the escapes on, maybe skipping \# */
100 *to++ = *from++;
104 *to = '\0'; /* For an empty var name below */
110 if (endto - to < (int)len )
111 len = endto - to;
113 strncpy(to, from+2, len);
114 to[len] = '\0';
117 *to++ = *from++;
121 *to++ = *from++;
125 ptr = to;
130 if (*to == '\0')
131 *to++ = '$';
132 else if ((env = getenv(to)) != NULL) {
133 strncpy(to, env, endto - to);
135 to += strlen(to);
145 strncpy(to, from, len);
146 to[len] = '\0';
147 pwd = getpwnam(to);
150 *to++ = '~';
152 strncpy(to, pwd->pw_dir, endto - to);
154 to += strlen(to);
161 *to++ = *from++;
166 while (to > startto) {
167 to--;
168 if (!issep(*to)) {
169 to++;
173 *to = '\0';
404 * Disable any context so that warnings are given to everyone,
430 * Note: The ReadSystem() calls only result in calls to the Allow*
431 * functions. arg->bundle will be set to NULL for these commands !