pkgsrc/pkgtools/bootstrap-extras/files/xargs-sh
tnn 0234d40e0a xargs(1) on Interix is broken. It executes the utility on the command line
even if standard input is the empty string. Install a wrapper script
bundled with pkgtools/bootstrap-extras to deal with this. This is an
attempt at a permanent workaround for the problem described in PR pkg/25777
which has regressed since it was initially fixed.

We can now bootstrap again on Interix 3.5.
2007-07-01 23:27:43 +00:00

13 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