⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 backref.sh

📁 linux平台中
💻 SH
字号:
#!/bin/sh# Test that backrefs are local to regex.##: ${srcdir=.}failures=0# checking for a palindromeecho "radar" | ${GREP} -e '\(.\)\(.\).\2\1' > /dev/null 2>&1if test $? -ne 0 ; then        echo "backref: palindrome, test \#1 failed"        failures=1fi# hit hard with the `Bond' testsecho "civic" | ${GREP} -E -e '^(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?).?\9\8\7\6\5\4\3\2\1$' > /dev/null 2>&1if test $? -ne 0 ; then        echo "Options: Bond, test \#2 failed"        failures=1fi# backref are local should be errorecho "123" | ${GREP} -e 'a\(.\)' -e 'b\1' > /dev/null 2>&1if test $? -ne 2 ; then	echo "Options: Backref not local, test \#3 failed"	failures=1fi# Pattern should faileecho "123" | ${GREP} -e '[' -e ']' > /dev/null 2>&1if test $? -ne 2 ; then	echo "Options: Compiled not local, test \#3 failed"	failures=1fiexit $failures

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -