mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-02 00:13:40 +02:00
commit bash-20120216 snapshot
This commit is contained in:
@@ -16,3 +16,15 @@ esac
|
||||
case a in
|
||||
a) echo no more clauses;&
|
||||
esac
|
||||
|
||||
x=0 y=1
|
||||
case 1 in
|
||||
$((y=0)) ) ;;
|
||||
$((x=1)) ) ;&
|
||||
$((x=2)) ) echo $x.$y ;;
|
||||
esac
|
||||
|
||||
unset x
|
||||
readonly xx=1
|
||||
case 1 in $((xx++)) ) echo hi1 ;; *) echo hi2; esac
|
||||
echo ${xx}.$?
|
||||
|
||||
Reference in New Issue
Block a user