2013-09-26 17:14:40 +02:00

14 lines
270 B
Bash

#! /bin/sh
#
# $NetBSD: xargs-sh,v 1.1 2007/07/01 23:27:43 tnn Exp $
#
# xargs(1) on Interix is broken. It executes the utility on the command line
# even if standard input is the empty string.
d="`/bin/cat`"
if [ "$d" != "" ]
then
echo "$d" | /bin/xargs $@
exit $?
fi