| |<- | <- | -> | ->| |
[jao@zack]$ osh gen 5 ^ \
f 'x: (x, x / (x - 2))' ^ \
o : out 'OK: %s' , \
e : [ f 'cmd, input, msg: (input[0], msg)' ^ \
out 'OOPS: %s: %s' ]
OK: (0, 0)
OK: (1, -1)
OOPS: 2: integer division or modulo by zero
OK: (3, 3)
OK: (4, 2)