Date: Wed, 15 Sep 2004 17:50:23 GMT From: Chris Johnson <chris@claimlynx.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/71769: install command sets improper exit values Message-ID: <200409151750.i8FHoN6P056982@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/71769; it has been noted by GNATS. From: Chris Johnson <chris@claimlynx.com> To: freebsd-gnats-submit@FreeBSD.org, chris@claimlynx.com Cc: 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 #!/bin/sh /usr/bin/install -d $1 echo $# 220 test> /bin/sh $ /usr/bin/install -d foob $ echo $# 0 $ exit 221 test> rmdir foob 222 test> bar foob 1 What the devil?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409151750.i8FHoN6P056982>