xargs.tests 548 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. # Copyright 2008 by Denys Vlasenko
  3. # Licensed under GPL v2, see file LICENSE for details.
  4. . ./testing.sh
  5. # testing "test name" "command" "expected result" "file input" "stdin"
  6. testing "xargs -E _ stops on underscore" \
  7. "xargs -E _" \
  8. "a\n" \
  9. "" "a\n_\nb\n"
  10. testing "xargs -E ''" \
  11. "xargs -E ''" \
  12. "a _ b\n" \
  13. "" "a\n_\nb\n"
  14. testing "xargs -e without param" \
  15. "xargs -e" \
  16. "a _ b\n" \
  17. "" "a\n_\nb\n"
  18. testing "xargs does not stop on underscore ('new' GNU behavior)" \
  19. "xargs" \
  20. "a _ b\n" \
  21. "" "a\n_\nb\n"
  22. exit $FAILCOUNT