You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
449 B
18 lines
449 B
#!/bin/bash
|
|
echo "Running $0"
|
|
TMPDIR=/var/tmp/find
|
|
# Basic xargs tests
|
|
|
|
echo "Basic xargs tests"
|
|
find "$TMPDIR" -type f -print0 | xargs -0 ls &>/dev/null
|
|
#ls -l >/dev/null
|
|
t_CheckExitStatus $?
|
|
|
|
echo "Check xargs fails when filenames with spaces are passed in"
|
|
find "$TMPDIR" -type f | xargs ls &>/dev/null && { t_Log "FAIL: This test returned 0 status incorrectly"; exit $FAIL; }
|
|
t_Log "PASS"
|
|
|
|
|
|
# Cleanup
|
|
[[ -d "$TMPDIR" ]] && rm -rf "$TMPDIR"
|