diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-01-06 20:28:50 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-01-06 20:28:50 +0000 |
commit | 020e116c54e61fcd3eea1be5938a6aa03d7c559c (patch) | |
tree | 2f0a93d99cc5d16b7490254469813410629ea6b8 /Test | |
parent | 77281a0905099feaab8192c1847d14a82c839f9e (diff) | |
download | zsh-020e116c54e61fcd3eea1be5938a6aa03d7c559c.tar.gz zsh-020e116c54e61fcd3eea1be5938a6aa03d7c559c.tar.xz zsh-020e116c54e61fcd3eea1be5938a6aa03d7c559c.zip |
28588: fix textual display after =~ test
Diffstat (limited to 'Test')
-rw-r--r-- | Test/C02cond.ztst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 00e22c182..629fdd206 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -306,6 +306,21 @@ F:Failures in these cases do not indicate a problem in the shell. 2:Error message for unknown infix condition ?(eval):1: unknown condition: -fail + crashme() { + if [[ $1 =~ ^http:* ]] + then + url=${1#*=} + fi + } + which crashme +0:Regression test for examining code with regular expression match +>crashme () { +> if [[ $1 =~ ^http:* ]] +> then +> url=${1#*=} +> fi +>} + %clean # This works around a bug in rm -f in some versions of Cygwin chmod 644 unmodish |