Commit 5d3b3b4f 5d3b3b4ff087933b311f79406ab36098d3292d2c by Sergey Poznyakoff

Delimit addresses with space (~t, ~c and ~b escapes).

Removed var_exit().
1 parent 71ab61af
...@@ -147,7 +147,10 @@ int ...@@ -147,7 +147,10 @@ int
147 var_bcc(int argc, char **argv, struct send_environ *env) 147 var_bcc(int argc, char **argv, struct send_environ *env)
148 { 148 {
149 while (--argc) 149 while (--argc)
150 {
151 util_strcat(&env->bcc, " ");
150 util_strcat(&env->bcc, *++argv); 152 util_strcat(&env->bcc, *++argv);
153 }
151 return 0; 154 return 0;
152 } 155 }
153 156
...@@ -156,7 +159,10 @@ int ...@@ -156,7 +159,10 @@ int
156 var_cc(int argc, char **argv, struct send_environ *env) 159 var_cc(int argc, char **argv, struct send_environ *env)
157 { 160 {
158 while (--argc) 161 while (--argc)
162 {
163 util_strcat(&env->cc, " ");
159 util_strcat(&env->cc, *++argv); 164 util_strcat(&env->cc, *++argv);
165 }
160 return 0; 166 return 0;
161 } 167 }
162 168
...@@ -374,7 +380,10 @@ int ...@@ -374,7 +380,10 @@ int
374 var_to(int argc, char **argv, struct send_environ *env) 380 var_to(int argc, char **argv, struct send_environ *env)
375 { 381 {
376 while (--argc) 382 while (--argc)
383 {
384 util_strcat(&env->to, " ");
377 util_strcat(&env->to, *++argv); 385 util_strcat(&env->to, *++argv);
386 }
378 return 0; 387 return 0;
379 } 388 }
380 389
...@@ -414,14 +423,6 @@ var_write(int argc, char **argv, struct send_environ *env) ...@@ -414,14 +423,6 @@ var_write(int argc, char **argv, struct send_environ *env)
414 return 0; 423 return 0;
415 } 424 }
416 425
417 /* ~x */
418 int
419 var_exit(int argc, char **argv, struct send_environ *env)
420 {
421 (void)argc; (void)argv; (void)env;
422 return util_do_command("quit");
423 }
424
425 /* ~|[shell-command] */ 426 /* ~|[shell-command] */
426 int 427 int
427 var_pipe(int argc, char **argv, struct send_environ *env) 428 var_pipe(int argc, char **argv, struct send_environ *env)
......