echo: Remove OpenB*OS version

* Was replaced by coreutils echo, and options are the same.
This commit is contained in:
Alexander von Gluck IV
2012-04-01 13:40:19 -05:00
parent 75c81b64a9
commit f855eb69ed
2 changed files with 0 additions and 49 deletions
-1
View File
@@ -34,7 +34,6 @@ StdBinCommands
clear.c
# csplit.c
driveinfo.c
# echo.c
error.c
fortune.c
finddir.c
-48
View File
@@ -1,48 +0,0 @@
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
//
// Copyright (c) 2001-2002, OpenBeOS
//
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//
//
// File: echo.c
// Author: Daniel Reinhold ([email protected])
// Description: standard Unix echo command
//
// Notes:
// the only command line option is "-n" which, if present, must appear
// before all the other command line args, and specifies to leave off
// the normal end-of-line character
//
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
#include <stdio.h>
#include <string.h>
int
main (int argc, char **argv)
{
int eol = 1;
if (argc > 1) {
char *first = *++argv;
if (strcmp (first, "-n") == 0)
eol = 0;
if (--argc) {
if (eol)
fprintf (stdout, "%s ", first);
while (--argc)
fprintf (stdout, "%s ", *++argv);
}
}
if (eol)
fputc ('\n', stdout);
fflush (stdout);
return 0;
}