mirror of
https://github.com/opnsense/src.git
synced 2026-04-05 01:15:30 -04:00
It does not make much sense to generate the '-' in a pattern bracket expression using arithmetic expansion, but it does not make sense to forbid it either. Try to avoid reprocessing the string if it is unnecessary.
10 lines
104 B
Text
10 lines
104 B
Text
# $FreeBSD$
|
|
|
|
case 5 in
|
|
[0"$((-9))"]) echo bad1 ;;
|
|
esac
|
|
|
|
case - in
|
|
[0"$((-9))"]) ;;
|
|
*) echo bad2 ;;
|
|
esac
|