zecho.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* zecho - bare-bones echo */
  2. /* Copyright (C) 1996-2002 Free Software Foundation, Inc.
  3. This file is part of GNU Bash, the Bourne Again SHell.
  4. Bash is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 2, or (at your option) any later
  7. version.
  8. Bash is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License along
  13. with Bash; see the file COPYING. If not, write to the Free Software
  14. Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. int
  18. main(argc, argv)
  19. int argc;
  20. char **argv;
  21. {
  22. argv++;
  23. while (*argv) {
  24. (void)printf("%s", *argv);
  25. if (*++argv)
  26. putchar(' ');
  27. }
  28. putchar('\n');
  29. exit(EXIT_SUCCESS);
  30. }