diff --git a/src/bin/Jamfile b/src/bin/Jamfile index 75aea891ae..9b32aacbe0 100644 --- a/src/bin/Jamfile +++ b/src/bin/Jamfile @@ -34,7 +34,6 @@ StdBinCommands clear.c # csplit.c driveinfo.c -# echo.c error.c fortune.c finddir.c diff --git a/src/bin/echo.c b/src/bin/echo.c deleted file mode 100644 index 1c6bc4156b..0000000000 --- a/src/bin/echo.c +++ /dev/null @@ -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 (danielre@users.sf.net) -// 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 -#include - - -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; -}