What does the “=~” operator do in shell scripts?

后端 未结 4 1959
别那么骄傲
别那么骄傲 2020-12-29 06:48

It seems that it is sort of comparison operator, but what exactly it does in e.g. the following code (taken from https://github.com/lvv/git-prompt/blob/master/git-prompt.sh#

4条回答
提交回复
热议问题