1254806Sjilles# $FreeBSD: releng/11.0/bin/sh/tests/expansion/arith13.0 254806 2013-08-24 20:06:00Z jilles $ 2254806Sjilles# Pre-increment and pre-decrement in arithmetic expansion are not in POSIX. 3254806Sjilles# Require either an error or a correct implementation. 4254806Sjilles 5254806Sjilles! (eval 'x=4; [ $((++x)) != 5 ] || [ $x != 5 ]') 2>/dev/null && 6254806Sjilles! (eval 'x=2; [ $((--x)) != 1 ] || [ $x != 1 ]') 2>/dev/null 7