Date: Thu, 14 Dec 2017 09:08:37 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224270] Get exit status of process that's piped to another: set -o pipefail is missing for /bin/sh Message-ID: <bug-224270-8-XAZZMTuzfS@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-224270-8@https.bugs.freebsd.org/bugzilla/> References: <bug-224270-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224270 --- Comment #4 from Wolfram Schneider <wosch@FreeBSD.org> --- (In reply to Jilles Tjoelker from comment #2) You mean a pipe like this: ( set -o pipefail; man tcsh | head | wc -l ); echo $? 10 141 You can use a sub shell if you need the pipefail option for a special action only. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224270-8-XAZZMTuzfS>