]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - bin/sh/tests/builtins/case20.0
MFC r287148: sh: Fix out of bounds read when there is no ] after a [:class:].
[FreeBSD/stable/10.git] / bin / sh / tests / builtins / case20.0
1 # $FreeBSD$
2
3 # Shells do not agree about what this pattern should match, but it is
4 # certain that it must not crash and the missing close bracket must not
5 # be simply ignored.
6
7 case B in
8 [[:alpha:]) echo bad ;;
9 esac