diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-07 20:17:41 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-07 20:17:41 +0000 |
commit | f4532f9fd377898c339aaa81cde66c14808248dd (patch) | |
tree | 6e35288c247102998a775cbc16f9ec014e00e7fd /shell | |
parent | 2ce533f0b2a79abdfb07d8879afe08f697278158 (diff) | |
download | busybox-w32-f4532f9fd377898c339aaa81cde66c14808248dd.tar.gz busybox-w32-f4532f9fd377898c339aaa81cde66c14808248dd.tar.bz2 busybox-w32-f4532f9fd377898c339aaa81cde66c14808248dd.zip |
- reuse strings and messages. Saves about 600B
git-svn-id: svn://busybox.net/trunk/busybox@15325 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 | ||||
-rw-r--r-- | shell/lash.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c index 5cdd7f006..962813dbd 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -8762,7 +8762,7 @@ procargs(int argc, char **argv) | |||
8762 | xminusc = minusc; | 8762 | xminusc = minusc; |
8763 | if (*xargv == NULL) { | 8763 | if (*xargv == NULL) { |
8764 | if (xminusc) | 8764 | if (xminusc) |
8765 | sh_error("-c requires an argument"); | 8765 | sh_error(bb_msg_requires_arg, "-c"); |
8766 | sflag = 1; | 8766 | sflag = 1; |
8767 | } | 8767 | } |
8768 | if (iflag == 2 && sflag == 1 && isatty(0) && isatty(1)) | 8768 | if (iflag == 2 && sflag == 1 && isatty(0) && isatty(1)) |
diff --git a/shell/lash.c b/shell/lash.c index b8ec8c66b..733b80cf5 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -284,7 +284,7 @@ static int builtin_fg_bg(struct child_prog *child) | |||
284 | } | 284 | } |
285 | } else { | 285 | } else { |
286 | if (sscanf(child->argv[1], "%%%d", &jobnum) != 1) { | 286 | if (sscanf(child->argv[1], "%%%d", &jobnum) != 1) { |
287 | bb_error_msg("%s: bad argument '%s'", child->argv[0], child->argv[1]); | 287 | bb_error_msg(bb_msg_invalid_arg, child->argv[1], child->argv[0]); |
288 | return EXIT_FAILURE; | 288 | return EXIT_FAILURE; |
289 | } | 289 | } |
290 | for (job = child->family->job_list->head; job; job = job->next) { | 290 | for (job = child->family->job_list->head; job; job = job->next) { |
@@ -465,7 +465,7 @@ static int builtin_source(struct child_prog *child) | |||
465 | static int builtin_unset(struct child_prog *child) | 465 | static int builtin_unset(struct child_prog *child) |
466 | { | 466 | { |
467 | if (child->argv[1] == NULL) { | 467 | if (child->argv[1] == NULL) { |
468 | printf( "unset: parameter required.\n"); | 468 | printf(bb_msg_requires_arg, "unset"); |
469 | return EXIT_FAILURE; | 469 | return EXIT_FAILURE; |
470 | } | 470 | } |
471 | unsetenv(child->argv[1]); | 471 | unsetenv(child->argv[1]); |