标签: regex bash
可能重复: why quote removal isn’t performed between [[ … ]]?
#!/bin/bash VER=1.0.3-16 if [[ $VER =~ "1.0.3.*" ]] then echo "Supported" else echo "Not Supported" fi
它曾经在3.2.25中运作良好