From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Wed, 20 Nov 2013 09:11:05 -0500 To: 9fans@9fans.net Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] p9p mk rc help Topicbox-Message-UUID: 8ac71526-ead8-11e9-9d60-3106f5b1d025 > target: prereq > FOO_COMMAND | BAR_COMMAND > st = $status > if (~ $st ?* ^ '|' ^ *) { > echo FOO_COMMAND failed > exit 3 } i think there a bug in this. a trailing ~ 1 1 or similar is necessary to clear the status from the if. alternately, how about replacing the if with simply ! ~ $st ?* ^ '|' ^ * which should correctly set the status. - erik