source: trunk/minix/commands/ash/bltin/nlecho.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 613 bytes
RevLine 
[9]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
17main(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.