summaryrefslogtreecommitdiffstats
path: root/bin/test
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2005-08-13 21:28:43 +0000
committercperciva <cperciva@FreeBSD.org>2005-08-13 21:28:43 +0000
commit157c398c7e655325cd86c5bbf57997de4fdff9d6 (patch)
tree9dd8df67460a932ecacfc1986a3c595434aa28b8 /bin/test
parent880a322170cc5efeec0ee6f6a5c308f785270915 (diff)
downloadFreeBSD-src-157c398c7e655325cd86c5bbf57997de4fdff9d6.zip
FreeBSD-src-157c398c7e655325cd86c5bbf57997de4fdff9d6.tar.gz
Correctly exit from extract_run() and update_run() if files needed are
missing from ${WORKDIR}/files/. This bug was caused by the astonishing interaction of "return" and pipelines; in the following code, the "return" does not exit the function, but instead exits the subshell which was spawned for the last element of the pipeline; consequently, the output produced is "foo". foo() { echo bar | while read baz; do if [ ${baz} = "bar" ]; then return 1 fi done echo foo } Reported by: simon
Diffstat (limited to 'bin/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud