Re: assert built-in

2015-08-20 Thread Chet Ramey
On 8/19/15 11:48 AM, Greg Wooledge wrote: > On Wed, Aug 19, 2015 at 08:39:15AM +, Craig wrote: >> It's somewhat cumbersome to have to transport this assert function from >> project to project, so it would save a considerable amount of effort and >> time if it were built-in. > >> function asser

Re: assert built-in

2015-08-19 Thread Greg Wooledge
On Wed, Aug 19, 2015 at 08:39:15AM +, Craig wrote: > It's somewhat cumbersome to have to transport this assert function from > project to project, so it would save a considerable amount of effort and > time if it were built-in. > function assert() { > local lineno=${BASH_LINENO[0]} \ >

assert built-in

2015-08-19 Thread Craig
Is this the appropriate place to present feature requests or is there another forum for that? I am keen to propose the introduction of an assert built-in. The only purpose of this built-in is to behave functionally identical to the eval built-in, except that on error, the current shell process