bin/71769: install command sets improper exit values
chris at claimlynx.com
Wed Sep 15 10:50:24 PDT 2004
The following reply was made to PR bin/71769; it has been noted by GNATS.
From: Chris Johnson <chris at claimlynx.com>
To: freebsd-gnats-submit at FreeBSD.org, chris at claimlynx.com
Subject: Re: bin/71769: install command sets improper exit values
Date: Wed, 15 Sep 2004 12:45:30 -0500
Strangely, this seems to be related to running "install" within shell scripts
only as it works fine from the command line. More strange still is that a
quick look at the xinstall.c code does not show any way that the exit code can
be set to 1! Is this a /bin/sh problem instead?
Here's my minimal test case for reproducing the problem (with some extra LFs
for easier reading):
219 test> cat bar
/usr/bin/install -d $1
220 test> /bin/sh
$ /usr/bin/install -d foob
$ echo $#
221 test> rmdir foob
222 test> bar foob
What the devil?
More information about the freebsd-bugs