]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/expansion/cmdsubst13.0
shell_cmds-207.11.1.tar.gz
[apple/shell_cmds.git] / sh / tests / expansion / cmdsubst13.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/expansion/cmdsubst13.0 230121 2012-01-14 23:10:18Z jilles $
71aad674
A
2
3x=1 y=2
4[ "$(
5 case $((x+=1)) in
6 ($((y+=1))) echo bad1 ;;
7 ($((y-1))) echo $x.$y ;;
8 ($((y=2))) echo bad2 ;;
9 (*) echo bad3 ;;
10 esac
11)" = "2.3" ] || echo "Error at $LINENO"
12[ "$x.$y" = "1.2" ] || echo "Error at $LINENO"