Line | |
---|
1 | /*
|
---|
2 | * Echo the command argument to the standard output, one line at a time.
|
---|
3 | * This command is useful for debugging th shell and whenever you what
|
---|
4 | * to output strings literally.
|
---|
5 | *
|
---|
6 | * Copyright (C) 1989 by Kenneth Almquist. All rights reserved.
|
---|
7 | * This file is part of ash, which is distributed under the terms specified
|
---|
8 | * by the Ash General Public License. See the file named LICENSE.
|
---|
9 | */
|
---|
10 |
|
---|
11 |
|
---|
12 | #define main nlechocmd
|
---|
13 |
|
---|
14 | #include "bltin.h"
|
---|
15 |
|
---|
16 |
|
---|
17 | main(argc, argv) char **argv; {
|
---|
18 | register char **ap;
|
---|
19 |
|
---|
20 | for (ap = argv + 1 ; *ap ; ap++) {
|
---|
21 | fputs(*ap, stdout);
|
---|
22 | putchar('\n');
|
---|
23 | }
|
---|
24 | return 0;
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.