zecho.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 main(int argc, char **argv)
  18. {
  19. argv++;
  20. while (*argv) {
  21. (void)printf("%s", *argv);
  22. if (*++argv)
  23. putchar(' ');
  24. }
  25. putchar('\n');
  26. exit(EXIT_SUCCESS);
  27. }